llvm-project/cmake/Modules
Tobias Hieta 45ab1904b3 Correctly find builtins library with clang-cl
When using COMPILER_RT_USE_BUILTINS_LIBRARY=ON and clang-cl there
where several places where it didn't work as expected.

First -print-libgcc-file-name has to be prefixed with /clang:

Then the regex that matched the builtins library was wrong because
the builtins library is called clang_rt.builtins_<arch>.lib
and the regex only matched libclang_rt.builtins_arch.a

With this commit you can use a runtime build on Windows with this
option enabled.

Reviewed By: phosek

Differential Revision: https://reviews.llvm.org/D120698
2022-03-14 07:49:29 +01:00
..
EnableLanguageNolink.cmake [libunwind] Try to add --unwindlib=none while configuring and building libunwind 2021-11-05 10:10:19 +02:00
ExtendPath.cmake [cmake] Tweak warning in `extend_path` helper function 2021-12-30 07:00:50 +00:00
FindPrefixFromConfig.cmake [CMake] Factor out config prefix finding logic 2022-01-07 20:16:18 +00:00
HandleCompilerRT.cmake Correctly find builtins library with clang-cl 2022-03-14 07:49:29 +01:00
HandleOutOfTreeLLVM.cmake [cmake] Move HandleOutOfTreeLLVM to common cmake utils 2022-01-19 22:05:23 +00:00
LLVMCheckCompilerLinkerFlag.cmake [cmake] Partially deduplicate `{llvm,compiler_rt}_check_linker_flag` for runtime libs and llvm 2022-01-29 06:07:24 +00:00
SetPlatformToolchainTools.cmake [CMake] Move the AIX archiver settings to a module 2022-01-05 11:46:30 -08:00