Skip to content

Commit

Permalink
[CMake] Handle common options for runtimes build
Browse files Browse the repository at this point in the history
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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@291590 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
petrhosek committed Jan 10, 2017
1 parent c7eb5df commit 8548be3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions runtimes/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ if(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR})
# 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)

Expand Down

0 comments on commit 8548be3

Please sign in to comment.