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:
a401870
)
[clang] Fix cross compiling clang for windows after 141945f950e2f3f
author
Martin Storsjö
<martin@martin.st>
Sun, 18 Apr 2021 12:53:48 +0000
(15:53 +0300)
committer
Martin Storsjö
<martin@martin.st>
Sun, 18 Apr 2021 12:56:18 +0000
(15:56 +0300)
Don't try to execute clang-ast-dump when cross compiling.
clang/lib/Tooling/CMakeLists.txt
patch
|
blob
|
history
diff --git
a/clang/lib/Tooling/CMakeLists.txt
b/clang/lib/Tooling/CMakeLists.txt
index
dfb7323
..
a0bb108
100644
(file)
--- a/
clang/lib/Tooling/CMakeLists.txt
+++ b/
clang/lib/Tooling/CMakeLists.txt
@@
-25,6
+25,7
@@
string(CONCAT BINARY_INCLUDE_DIR ${PATH_HEAD} "/include/clang/" ${PATH_TAIL})
if (NOT Python3_EXECUTABLE
OR APPLE
+ OR CMAKE_CROSSCOMPILING
OR GENERATOR_IS_MULTI_CONFIG
OR NOT LLVM_NATIVE_ARCH IN_LIST LLVM_TARGETS_TO_BUILD
OR NOT X86 IN_LIST LLVM_TARGETS_TO_BUILD