[llvm] r291590 - [CMake] Handle common options for runtimes build
Petr Hosek via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 10 11:47:05 PST 2017
Author: phosek
Date: Tue Jan 10 13:47:05 2017
New Revision: 291590
URL: http://llvm.org/viewvc/llvm-project?rev=291590&view=rev
Log:
[CMake] Handle common options for runtimes build
All the existing runtimes relies on flags which are set by AddLLVM
and HandleLLVMOptions. In the standalone case, they would include
these themselves, but when being built using LLVM runtimes we should
include these in the top-level runtimes CMake files.
Differential Revision: https://reviews.llvm.org/D28389
Modified:
llvm/trunk/runtimes/CMakeLists.txt
Modified: llvm/trunk/runtimes/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/runtimes/CMakeLists.txt?rev=291590&r1=291589&r2=291590&view=diff
==============================================================================
--- llvm/trunk/runtimes/CMakeLists.txt (original)
+++ llvm/trunk/runtimes/CMakeLists.txt Tue Jan 10 13:47:05 2017
@@ -61,6 +61,10 @@ if(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_
# 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)
More information about the llvm-commits
mailing list