Please use GitHub pull requests for new patches. Phabricator shutdown timeline
Changeset View
Changeset View
Standalone View
Standalone View
runtimes/CMakeLists.txt
Show First 20 Lines • Show All 163 Lines • ▼ Show 20 Lines | |||||
# Use libtool instead of ar if you are both on an Apple host, and targeting Apple. | # Use libtool instead of ar if you are both on an Apple host, and targeting Apple. | ||||
if(CMAKE_HOST_APPLE AND APPLE) | if(CMAKE_HOST_APPLE AND APPLE) | ||||
include(UseLibtool) | include(UseLibtool) | ||||
endif() | endif() | ||||
# This can be used to detect whether we're in the runtimes build. | # This can be used to detect whether we're in the runtimes build. | ||||
set(LLVM_RUNTIMES_BUILD ON) | set(LLVM_RUNTIMES_BUILD ON) | ||||
include(SetTargetTriple) | |||||
set_llvm_target_triple() | |||||
foreach(entry ${runtimes}) | foreach(entry ${runtimes}) | ||||
get_filename_component(projName ${entry} NAME) | get_filename_component(projName ${entry} NAME) | ||||
# TODO: Clean this up as part of an interface standardization | # TODO: Clean this up as part of an interface standardization | ||||
string(REPLACE "-" "_" canon_name ${projName}) | string(REPLACE "-" "_" canon_name ${projName}) | ||||
string(TOUPPER ${canon_name} canon_name) | string(TOUPPER ${canon_name} canon_name) | ||||
# TODO: compiler-rt has to use standalone build for now. We tried to remove | # TODO: compiler-rt has to use standalone build for now. We tried to remove | ||||
▲ Show 20 Lines • Show All 107 Lines • Show Last 20 Lines |