llvm-project/clang/runtime
Chris Bieneman 38b2dec37e [CMake] Make external compiler-rt install scripts relative to CMAKE_INSTALL_PREFIX.
This change makes LLVM_BUILD_EXTERNAL_COMPILER_RT work correctly when overriding CMAKE_INSTALL_PREFIX on the install action (which is how LLVM_CREATE_XCODE_TOOLCHAIN works).

This fix is two parts:
(1) Pass CMAKE_INSTALL_PREFIX in as a variable from the parent install to the child install
(2) When passing COMPILER_RT_INSTALL_PATH into the external project make sure it is passed as a string not a path.

Not specifying the full path for COMPILER_RT_INSTALL_PATH isn't enough to fix the issue because relative paths specified on the CMake command line are expanded relative to the working directory before the cache is populated. Forcing this to a string allows it to remain a relative path through to the install() calls. Relative paths specified in install() calls are expanded relative to CMAKE_INSTALL_PREFIX at install time.

llvm-svn: 250834
2015-10-20 16:39:25 +00:00
..
compiler-rt Fix makefile build on OSX when ARM targets are not enabled 2015-10-04 18:51:04 +00:00
libcxx libc++: Install headers in include/, rather than lib/ 2013-11-15 18:07:57 +00:00
CMakeLists.txt [CMake] Make external compiler-rt install scripts relative to CMAKE_INSTALL_PREFIX. 2015-10-20 16:39:25 +00:00
Makefile