diff options
author | Puyan Lotfi <puyan@puyan.org> | 2019-09-24 23:48:42 +0000 |
---|---|---|
committer | Puyan Lotfi <puyan@puyan.org> | 2019-09-24 23:48:42 +0000 |
commit | 1db063ce1e1c7e244f429fafc0c55df631bd12f5 (patch) | |
tree | 1b4b1e931f73ddf1e2c31e87203def60cd03ea89 | |
parent | f754c5f52bf33370d9444463f37ce22d9316f204 (diff) | |
download | compiler-rt-1db063ce1e1c7e244f429fafc0c55df631bd12f5.tar.gz |
[NFC] Invoke lipo from CMAKE_LIPO.
This shouldn't change anything, except that a cmake cache file that specifies
CMAKE_LIPO can specify an alternate lipo to use.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@372790 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | cmake/Modules/CompilerRTDarwinUtils.cmake | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cmake/Modules/CompilerRTDarwinUtils.cmake b/cmake/Modules/CompilerRTDarwinUtils.cmake index 042c8a08d..15d34afe5 100644 --- a/cmake/Modules/CompilerRTDarwinUtils.cmake +++ b/cmake/Modules/CompilerRTDarwinUtils.cmake @@ -1,6 +1,8 @@ include(CMakeParseArguments) include(CompilerRTUtils) +set(CMAKE_LIPO "lipo" CACHE PATH "path to the lipo tool") + # On OS X SDKs can be installed anywhere on the base system and xcode-select can # set the default Xcode to use. This function finds the SDKs that are present in # the current Xcode. @@ -244,7 +246,7 @@ function(darwin_lipo_libs name) if(LIB_DEPENDS AND LIB_LIPO_FLAGS) add_custom_command(OUTPUT ${LIB_OUTPUT_DIR}/lib${name}.a COMMAND ${CMAKE_COMMAND} -E make_directory ${LIB_OUTPUT_DIR} - COMMAND lipo -output + COMMAND ${CMAKE_LIPO} -output ${LIB_OUTPUT_DIR}/lib${name}.a -create ${LIB_LIPO_FLAGS} DEPENDS ${LIB_DEPENDS} |