[all-commits] [llvm/llvm-project] 2049fe: [WoA][MSVC] Use default linker setting in MSVC-com...
maxim-kuvyrkov via All-commits
all-commits at lists.llvm.org
Fri Mar 19 06:38:33 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 2049fe58903b68f66872a18e608f40e5233b55fb
https://github.com/llvm/llvm-project/commit/2049fe58903b68f66872a18e608f40e5233b55fb
Author: Maxim Kuvyrkov <maxim.kuvyrkov at linaro.org>
Date: 2021-03-19 (Fri, 19 Mar 2021)
Changed paths:
M clang/lib/Driver/ToolChains/MSVC.cpp
M clang/test/Driver/Xlinker-args.c
M clang/test/Driver/cl-inputs.c
M clang/test/Driver/cl-link-at-file.c
M clang/test/Driver/cl-link.c
M clang/test/Driver/msvc-link.c
M clang/test/OpenMP/linking.c
Log Message:
-----------
[WoA][MSVC] Use default linker setting in MSVC-compatible driver [take 2]
At the moment "link.exe" is hard-coded as default linker in MSVC.cpp,
so there's no way to use LLD as default linker for MSVC driver.
This patch adds checking of CLANG_DEFAULT_LINKER to MSVC.cpp and
updates unit-tests that expect link.exe linker to explicitly select it
via -fuse-ld=link, so that buildbots and other builds that set
-DCLANG_DEFAULT_LINKER=foobar don't fail these tests.
This is a squash of
- https://reviews.llvm.org/D98493 (MSVC.cpp change) and
- https://reviews.llvm.org/D98862 (unit-tests change)
Reviewed By: maxim-kuvyrkov
Differential Revision: https://reviews.llvm.org/D98935
More information about the All-commits
mailing list