[PATCH] D62637: [CMake] Set LLVM_PATH in the runtimes build
Petr Hosek via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed May 29 18:21:45 PDT 2019
This revision was automatically updated to reflect the committed changes.
Closed by commit rL362047: [CMake] Set LLVM_PATH in the runtimes build (authored by phosek, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D62637?vs=202085&id=202087#toc
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D62637/new/
https://reviews.llvm.org/D62637
Files:
llvm/trunk/runtimes/CMakeLists.txt
Index: llvm/trunk/runtimes/CMakeLists.txt
===================================================================
--- llvm/trunk/runtimes/CMakeLists.txt
+++ llvm/trunk/runtimes/CMakeLists.txt
@@ -90,9 +90,15 @@
set(LLVM_RUNTIME_OUTPUT_INTDIR ${LLVM_TOOLS_BINARY_DIR})
# This variable makes sure that e.g. llvm-lit is found.
+ set(LLVM_BINARY_DIR ${LLVM_BUILD_BINARY_DIR})
+ set(LLVM_LIBRARY_DIR ${LLVM_BUILD_LIBRARY_DIR})
+ set(LLVM_INCLUDE_DIR ${LLVM_BUILD_MAIN_INCLUDE_DIR})
set(LLVM_MAIN_SRC_DIR ${LLVM_BUILD_MAIN_SRC_DIR})
set(LLVM_CMAKE_PATH ${LLVM_MAIN_SRC_DIR}/cmake/modules)
+ # This variable is used by individual runtimes to locate LLVM files.
+ set(LLVM_PATH ${LLVM_BUILD_MAIN_SRC_DIR})
+
if(APPLE)
set(LLVM_ENABLE_LIBCXX ON CACHE BOOL "")
endif()
@@ -375,8 +381,6 @@
# Builtins were built separately above
CMAKE_ARGS -DCOMPILER_RT_BUILD_BUILTINS=Off
-DLLVM_INCLUDE_TESTS=${LLVM_INCLUDE_TESTS}
- -DLLVM_BINARY_DIR=${LLVM_BINARY_DIR}
- -DLLVM_LIBRARY_DIR=${LLVM_LIBRARY_DIR}
-DLLVM_DEFAULT_TARGET_TRIPLE=${TARGET_TRIPLE}
-DLLVM_ENABLE_PER_TARGET_RUNTIME_DIR=ON
-DCMAKE_C_COMPILER_TARGET=${TARGET_TRIPLE}
@@ -466,8 +470,6 @@
# Builtins were built separately above
CMAKE_ARGS -DCOMPILER_RT_BUILD_BUILTINS=Off
-DLLVM_INCLUDE_TESTS=${LLVM_INCLUDE_TESTS}
- -DLLVM_BINARY_DIR=${LLVM_BINARY_DIR}
- -DLLVM_LIBRARY_DIR=${LLVM_LIBRARY_DIR}
-DLLVM_DEFAULT_TARGET_TRIPLE=${target}
-DLLVM_ENABLE_PER_TARGET_RUNTIME_DIR=ON
-DCMAKE_C_COMPILER_TARGET=${target}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D62637.202087.patch
Type: text/x-patch
Size: 2087 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190530/acb8c775/attachment.bin>
More information about the llvm-commits
mailing list