[PATCH] D41402: [cmake] Fix DESTDIR support in compiler-rt build

Petr Hosek via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 2 11:39:48 PST 2018

phosek added a comment.

I see the issue, the resource files are being installed into the `COMPILER_RT_INSTALL_PATH` rather than a subdirectory as everything else which will fail if you set empty `CMAKE_INSTALL_PREFIX`. When compiler-rt is built as part of LLVM, `COMPILER_RT_INSTALL_PATH` is set to `lib/clang/${clang_version}` so it's not an issue but in your case it'd break. A different solution that I can think of that might be cleaner would be to move these resource files into a subdirectory, e.g. `share/`.

  rCRT Compiler Runtime


More information about the llvm-commits mailing list