llvm-capstone/lld/COFF
Martin Storsjö 389bfbd66d [LLD] [COFF] Don't try to detect MSVC installations in mingw mode
In mingw mode, all linker paths are passed explicitly to the linker
by the compiler driver. Don't try to implicitly add linker paths
from the LIB environment variable or by detecting an MSVC
installation directory.

If the /winsysroot command line parameter is explicitly passed to
lld-link while /lldmingw is specified, it could be considered reasonable
to actually include those paths. However, modifying the code to
handle only the /winsysroot case but not the other ones, when the
mingw mode has been enabled, seems like much more code complexity
for a mostly hypothetical case.

Add a test for this when case when using LIB. (The code paths for
trying to detect an MSVC installation aren't really regression tested.)

Also fix an issue in the existing test for "Check that when /winsysroot
is specified, %LIB% is ignored.", where the LIB variable pointed
to a nonexistent directory, so the test would pass even if /winsysroot
wouldn't be specified.

Differential Revision: https://reviews.llvm.org/D144084
2023-02-17 10:56:43 +02:00
..
CallGraphSort.cpp [LLD] Remove global state in lld/COFF 2023-01-09 23:39:30 -05:00
CallGraphSort.h [lld/win] Use C++17 nested namespace syntax in most places 2022-08-08 11:48:12 -04:00
Chunks.cpp [NFC] Optimize vector usage in lld 2023-01-26 20:31:42 -05:00
Chunks.h [lld][COFF] Fix bug causing assertion in Chunk::setAlignment 2023-01-10 14:19:53 +00:00
CMakeLists.txt [Support] Move TargetParsers to new component 2022-12-20 11:05:50 +00:00
COFFLinkerContext.cpp [lld][COFF] Fix bug causing assertion in Chunk::setAlignment 2023-01-10 14:19:53 +00:00
COFFLinkerContext.h [lld][COFF] Fix bug causing assertion in Chunk::setAlignment 2023-01-10 14:19:53 +00:00
Config.h [LLD] Add --lto-CGO[0-3] option 2023-02-15 17:34:35 +00:00
DebugTypes.cpp Use llvm::byteswap instead of ByteSwap_{16,32,64} (NFC) 2023-01-28 15:22:37 -08:00
DebugTypes.h [LLD][COFF] Survive empty and invalid PCH signature 2022-11-20 10:40:50 -05:00
DLL.cpp [lld][COFF] Provide unwinding information for Chunk injected by /delayloaded 2023-01-16 18:39:21 +01:00
DLL.h [lld][COFF] Provide unwinding information for Chunk injected by /delayloaded 2023-01-16 18:39:21 +01:00
Driver.cpp [LLD] [COFF] Don't try to detect MSVC installations in mingw mode 2023-02-17 10:56:43 +02:00
Driver.h [OptTable] Precompute OptTable prefixes union table through tablegen 2023-01-12 12:08:06 +01:00
DriverUtils.cpp [NFC] Optimize vector usage in lld 2023-01-26 20:31:42 -05:00
ICF.cpp [LLD] Remove global state in lld/COFF 2023-01-09 23:39:30 -05:00
ICF.h [LLD] Remove global state in lld/COFF 2023-01-09 23:39:30 -05:00
InputFiles.cpp [NFC][TargetParser] Remove llvm/ADT/Triple.h 2023-02-07 12:39:46 +00:00
InputFiles.h [LLD] Remove global state in lld/COFF 2023-01-09 23:39:30 -05:00
LLDMapFile.cpp [LLD] Remove global state in lld/COFF 2023-01-09 23:39:30 -05:00
LLDMapFile.h [lld/win] Use C++17 nested namespace syntax in most places 2022-08-08 11:48:12 -04:00
LTO.cpp [LLD] Add --lto-CGO[0-3] option 2023-02-15 17:34:35 +00:00
LTO.h [LLD] Remove global state in lld/COFF 2023-01-09 23:39:30 -05:00
MapFile.cpp [LLD] Remove global state in lld/COFF 2023-01-09 23:39:30 -05:00
MapFile.h [lld/win] Use C++17 nested namespace syntax in most places 2022-08-08 11:48:12 -04:00
MarkLive.cpp [LLD] Remove global state in lld/COFF 2023-01-09 23:39:30 -05:00
MarkLive.h [lld/win] Use C++17 nested namespace syntax in most places 2022-08-08 11:48:12 -04:00
MinGW.cpp [NFC] Optimize vector usage in lld 2023-01-26 20:31:42 -05:00
MinGW.h [LLD] Remove global state in lld/COFF 2023-01-09 23:39:30 -05:00
Options.td [LLD][Windows]Feature "checksum" for Windows PE 2023-01-02 17:20:15 +08:00
PDB.cpp Move from llvm::makeArrayRef to ArrayRef deduction guides - last part 2023-01-10 11:47:43 +01:00
PDB.h [COFF] Change most Optional to std::optional 2022-11-27 16:39:40 -08:00
README.md
Symbols.cpp [LLD] Remove global state in lld/COFF 2023-01-09 23:39:30 -05:00
Symbols.h [LLD] Remove global state in lld/COFF 2023-01-09 23:39:30 -05:00
SymbolTable.cpp [LLD] Remove global state in lld/COFF 2023-01-09 23:39:30 -05:00
SymbolTable.h [LLD] Remove global state in lld/COFF 2023-01-09 23:39:30 -05:00
TypeMerger.h [LLD] Remove global state in lld/COFF 2023-01-09 23:39:30 -05:00
Writer.cpp [NFC] Optimize vector usage in lld 2023-01-26 20:31:42 -05:00
Writer.h [LLD] Remove global state in lld/COFF 2023-01-09 23:39:30 -05:00

See docs/NewLLD.rst