HomePhabricator

[WoA][MSVC] Use default linker setting in MSVC-compatible driver [take 2]
4990141a4366Unpublished

Authored by maxim-kuvyrkov on Mar 19 2021, 6:37 AM.

Unpublished Commit ยท Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

[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

Fixes https://bugs.llvm.org/show_bug.cgi?id=49624

Reviewed By: maxim-kuvyrkov

Differential Revision: https://reviews.llvm.org/D98935

(cherry-picked from commit 2049fe58903b68f66872a18e608f40e5233b55fb)

Details

Committed
maxim-kuvyrkovMar 19 2021, 11:41 AM
Parents
rGe3186ba0f3b5: [aarch64][WOA64][docs] Release note for WoA-hosted LLVM 12 binary
Branches
Unknown
Tags
Unknown

Event Timeline