projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c3fe847
)
[mlir][llvm] Fix windows build
author
Stephan Herhut
<herhut@google.com>
Mon, 28 Jun 2021 15:31:01 +0000
(17:31 +0200)
committer
Stephan Herhut
<herhut@google.com>
Mon, 28 Jun 2021 16:22:21 +0000
(18:22 +0200)
Gate the include of alloca.h behind _WIN32 guard.
Differential Revision: https://reviews.llvm.org/D105036
mlir/lib/ExecutionEngine/CRunnerUtils.cpp
patch
|
blob
|
history
diff --git
a/mlir/lib/ExecutionEngine/CRunnerUtils.cpp
b/mlir/lib/ExecutionEngine/CRunnerUtils.cpp
index
e5b682a
..
4677098
100644
(file)
--- a/
mlir/lib/ExecutionEngine/CRunnerUtils.cpp
+++ b/
mlir/lib/ExecutionEngine/CRunnerUtils.cpp
@@
-15,7
+15,10
@@
#include "mlir/ExecutionEngine/CRunnerUtils.h"
#ifndef _WIN32
+#include <alloca.h>
#include <sys/time.h>
+#else
+#include "malloc.h"
#endif // _WIN32
#include <cinttypes>