[PATCH] D99621: [CMake][Compiler-rt] Make it possible to configure standalone compiler-rt without `LLVMConfig.cmake`.
Dan Liew via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 2 12:53:25 PDT 2021
delcypher added a comment.
@mstorsjo @phosek I've adapted this patch to changes in https://reviews.llvm.org/D99620 and I've hoisted the code out of `if (LLVM_CONFIG_PATH)`. This required me to rewrite `compiler_rt_mock_llvm_cmake_config_set_target_triple` so that it no longer uses `llvm-config` because we can't assume it's available anymore. Instead we inspect the compiler being used and try to get a target triple from it.
A nice side benefit of the hoisting is that on Darwin I can actually now configure without needing `llvm-config` or `LLVMConfig.cmake` to be available.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D99621/new/
https://reviews.llvm.org/D99621
More information about the llvm-commits
mailing list