Skip to content

Commit b3b2538

Browse files
pkastingnico
authored andcommitted
[lld/coff] Make lld-link work in a non-MSVC shell, add /winsysroot:
Makes lld-link work in a non-MSVC shell by autodetecting MSVC toolchain. Also adds support for /winsysroot and a few other switches. All this is done by refactoring to share code with clang-cl's existing support for the same. Differential Revision: https://reviews.llvm.org/D118070
1 parent d408abf commit b3b2538

File tree

15 files changed

+1057
-751
lines changed

15 files changed

+1057
-751
lines changed

clang/docs/tools/clang-formatted-files.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,6 @@ clang/lib/Driver/ToolChains/InterfaceStubs.h
285285
clang/lib/Driver/ToolChains/Minix.h
286286
clang/lib/Driver/ToolChains/MipsLinux.cpp
287287
clang/lib/Driver/ToolChains/MSP430.h
288-
clang/lib/Driver/ToolChains/MSVCSetupApi.h
289288
clang/lib/Driver/ToolChains/PPCFreeBSD.cpp
290289
clang/lib/Driver/ToolChains/PPCFreeBSD.h
291290
clang/lib/Driver/ToolChains/PPCLinux.h
@@ -5150,6 +5149,8 @@ llvm/include/llvm/Support/MemoryBufferRef.h
51505149
llvm/include/llvm/Support/MSP430AttributeParser.h
51515150
llvm/include/llvm/Support/MSP430Attributes.h
51525151
llvm/include/llvm/Support/MSVCErrorWorkarounds.h
5152+
llvm/include/llvm/Support/MSVCPaths.h
5153+
llvm/include/llvm/Support/MSVCSetupApi.h
51535154
llvm/include/llvm/Support/Parallel.h
51545155
llvm/include/llvm/Support/PGOOptions.h
51555156
llvm/include/llvm/Support/PointerLikeTypeTraits.h
@@ -5840,6 +5841,7 @@ llvm/lib/Support/Memory.cpp
58405841
llvm/lib/Support/MemoryBufferRef.cpp
58415842
llvm/lib/Support/MSP430AttributeParser.cpp
58425843
llvm/lib/Support/MSP430Attributes.cpp
5844+
llvm/lib/Support/MSVCPaths.cpp
58435845
llvm/lib/Support/Optional.cpp
58445846
llvm/lib/Support/Parallel.cpp
58455847
llvm/lib/Support/Program.cpp

0 commit comments

Comments
 (0)