diff options
| author | Saleem Abdulrasool <compnerd@compnerd.org> | 2018-09-18 20:33:01 +0000 |
|---|---|---|
| committer | Saleem Abdulrasool <compnerd@compnerd.org> | 2018-09-18 20:33:01 +0000 |
| commit | 73c39c03283085438b92586b77a4c7fdfcf837f8 (patch) | |
| tree | 54a3c4f5ab795c07ea6c511a6d7c1acbea713653 | |
| parent | 5941da33e13486a982d421dcad29eb19365833d6 (diff) | |
| download | bcm5719-llvm-73c39c03283085438b92586b77a4c7fdfcf837f8.tar.gz bcm5719-llvm-73c39c03283085438b92586b77a4c7fdfcf837f8.zip | |
build: clean up some unnecessary cached variables
The CMAKE_<LANG>_ARCHIVE_FINISH rule doesn't need to be cleared for Darwin
static libraries. Avoid resetting the variables in the SIP case. If
CMAKE_RANLIB is cached, then CMake's Ninja generator will invoke ranlib during
installation, not due to the CMAKE_<LANG>_ARCHIVE_FINISH rule.
llvm-svn: 342511
| -rw-r--r-- | compiler-rt/CMakeLists.txt | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/compiler-rt/CMakeLists.txt b/compiler-rt/CMakeLists.txt index d4f1856024d..f363a511f37 100644 --- a/compiler-rt/CMakeLists.txt +++ b/compiler-rt/CMakeLists.txt @@ -123,9 +123,6 @@ if (COMPILER_RT_STANDALONE_BUILD) foreach(lang ${languages}) set(CMAKE_${lang}_CREATE_STATIC_LIBRARY "\"${CMAKE_LIBTOOL}\" -static ${LIBTOOL_NO_WARNING_FLAG} -o <TARGET> <LINK_FLAGS> <OBJECTS>") - # Replace the finish target so that ranlib is not invoked on the - # archive. - set(CMAKE_${lang}_ARCHIVE_FINISH "") endforeach() endif() @@ -136,8 +133,6 @@ if (COMPILER_RT_STANDALONE_BUILD) foreach(cmd ${CMAKE_${lang}_CREATE_STATIC_LIBRARY}) list(APPEND CMAKE_${lang}_CREATE_STATIC_LIBRARY_NEW "${dyld_envar} ${cmd}") endforeach() - set(CMAKE_${lang}_CREATE_STATIC_LIBRARY ${CMAKE_${lang}_CREATE_STATIC_LIBRARY_NEW}) - set(CMAKE_${lang}_ARCHIVE_FINISH " ") endforeach() endif() endif() |

