[PATCH] D28389: [CMake] Handle common options in runtimes build
Petr Hosek via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 5 17:33:49 PST 2017
phosek created this revision.
phosek added a reviewer: beanz.
phosek added a subscriber: llvm-commits.
phosek set the repository for this revision to rL LLVM.
Herald added a subscriber: mgorny.
All the existing runtimes relies on flags which are set by AddLLVM and HandleLLVMOptions. While these get included by each individual runtime in the standalone case, when being built as part of LLVM runtimes we need to include these in the top-level CMake file.
Repository:
rL LLVM
https://reviews.llvm.org/D28389
Files:
runtimes/CMakeLists.txt
Index: runtimes/CMakeLists.txt
===================================================================
--- runtimes/CMakeLists.txt
+++ runtimes/CMakeLists.txt
@@ -61,6 +61,10 @@
# This variable makes sure that e.g. llvm-lit is found.
set(LLVM_MAIN_SRC_DIR ${LLVM_BUILD_MAIN_SRC_DIR})
+ # Handle common options used by all runtimes.
+ include(AddLLVM)
+ include(HandleLLVMOptions)
+
foreach(entry ${runtimes})
get_filename_component(projName ${entry} NAME)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D28389.83330.patch
Type: text/x-patch
Size: 473 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170106/db6a6863/attachment.bin>
More information about the llvm-commits
mailing list