]> granicus.if.org Git - clang/commit
[CMake] Pass DYLD_LIBRARY_PATH as CMake variable instead of as envar
authorChris Bieneman <beanz@apple.com>
Mon, 25 Jul 2016 23:48:14 +0000 (23:48 +0000)
committerChris Bieneman <beanz@apple.com>
Mon, 25 Jul 2016 23:48:14 +0000 (23:48 +0000)
commit84bcf930036cff6ccc820c93f9ef3f7c08e5964d
tree62c18d50153e2078a8c3b69d7ae67b97e3057e45
parent9d672b17b74ad1ad27290a6f3daf58defabc1fbc
[CMake] Pass DYLD_LIBRARY_PATH as CMake variable instead of as envar

On OS X 10.11 System Integrity Protection prevents the DYLD environment variables from being set on system binaries. To work around this r276710 accepts DYLD_LIBRARY_PATH as a CMake variable and sets it directly on the archiver commands.

To make this work with bootstrapping we need to set DYLD_LIBRARY_PATH to the current stage's library directory and pass that into the next stage's configuration.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@276711 91177308-0d34-0410-b5e6-96231b3b80d8
CMakeLists.txt