[PATCH] D24503: [CMake] Fixing lit for runtimes directory

Jonas Hahnfeld via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 13 06:23:59 PDT 2016


Hahnfeld created this revision.
Hahnfeld added a reviewer: beanz.
Hahnfeld added a subscriber: llvm-commits.
Herald added subscribers: mgorny, beanz.

LLVM_MAIN_SRC_DIR is not in LLVMConfig.cmake and was therefore not available
in runtimes/. This made add_lit_target() look for llvm-lit in the PATH
where it is not necessarily present.

https://reviews.llvm.org/D24503

Files:
  runtimes/CMakeLists.txt

Index: runtimes/CMakeLists.txt
===================================================================
--- runtimes/CMakeLists.txt
+++ runtimes/CMakeLists.txt
@@ -186,6 +186,7 @@
                              # Builtins were built separately above
                              CMAKE_ARGS -DCOMPILER_RT_BUILD_BUILTINS=Off
                                         -DLLVM_INCLUDE_TESTS=${LLVM_INCLUDE_TESTS}
+                                        -DLLVM_MAIN_SRC_DIR=${LLVM_MAIN_SRC_DIR}
                              PASSTHROUGH_PREFIXES ${prefixes}
                              EXTRA_TARGETS ${extra_targets}
                                             ${test_targets}


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D24503.71155.patch
Type: text/x-patch
Size: 669 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160913/9a4871c9/attachment.bin>


More information about the llvm-commits mailing list