build: clean up some unnecessary cached variables
authorSaleem Abdulrasool <compnerd@compnerd.org>
Tue, 18 Sep 2018 20:33:01 +0000 (20:33 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Tue, 18 Sep 2018 20:33:01 +0000 (20:33 +0000)
commit73c39c03283085438b92586b77a4c7fdfcf837f8
tree54a3c4f5ab795c07ea6c511a6d7c1acbea713653
parent5941da33e13486a982d421dcad29eb19365833d6
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
compiler-rt/CMakeLists.txt