[all-commits] [llvm/llvm-project] 45ab19: Correctly find builtins library with clang-cl
Tobias Hieta via All-commits
all-commits at lists.llvm.org
Sun Mar 13 23:49:42 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 45ab1904b34458a55dee471c39df8ea91b43bd52
https://github.com/llvm/llvm-project/commit/45ab1904b34458a55dee471c39df8ea91b43bd52
Author: Tobias Hieta <tobias at hieta.se>
Date: 2022-03-14 (Mon, 14 Mar 2022)
Changed paths:
M cmake/Modules/HandleCompilerRT.cmake
Log Message:
-----------
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
More information about the All-commits
mailing list