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

Jonas Hahnfeld via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 14 23:22:44 PDT 2016


This revision was automatically updated to reflect the committed changes.
Closed by commit rL281585: [CMake] Fixing lit for runtimes directory (authored by Hahnfeld).

Changed prior to commit:
  https://reviews.llvm.org/D24503?vs=71301&id=71475#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D24503

Files:
  llvm/trunk/runtimes/CMakeLists.txt

Index: llvm/trunk/runtimes/CMakeLists.txt
===================================================================
--- llvm/trunk/runtimes/CMakeLists.txt
+++ llvm/trunk/runtimes/CMakeLists.txt
@@ -58,6 +58,9 @@
   set(LLVM_LIBRARY_OUTPUT_INTDIR ${LLVM_LIBRARY_DIR})
   set(LLVM_RUNTIME_OUTPUT_INTDIR ${LLVM_TOOLS_BINARY_DIR})
 
+  # This variable makes sure that e.g. llvm-lit is found.
+  set(LLVM_MAIN_SRC_DIR ${LLVM_BUILD_MAIN_SRC_DIR})
+
   foreach(entry ${runtimes})
     get_filename_component(projName ${entry} NAME)
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D24503.71475.patch
Type: text/x-patch
Size: 521 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160915/d411e305/attachment.bin>


More information about the llvm-commits mailing list