[clang] Fix cross compiling clang for windows after 141945f950e2f3f
authorMartin Storsjö <martin@martin.st>
Sun, 18 Apr 2021 12:53:48 +0000 (15:53 +0300)
committerMartin 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

index dfb7323..a0bb108 100644 (file)
@@ -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