mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-02 18:58:15 +00:00
389bfbd66d
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 |
||
---|---|---|
.. | ||
CallGraphSort.cpp | ||
CallGraphSort.h | ||
Chunks.cpp | ||
Chunks.h | ||
CMakeLists.txt | ||
COFFLinkerContext.cpp | ||
COFFLinkerContext.h | ||
Config.h | ||
DebugTypes.cpp | ||
DebugTypes.h | ||
DLL.cpp | ||
DLL.h | ||
Driver.cpp | ||
Driver.h | ||
DriverUtils.cpp | ||
ICF.cpp | ||
ICF.h | ||
InputFiles.cpp | ||
InputFiles.h | ||
LLDMapFile.cpp | ||
LLDMapFile.h | ||
LTO.cpp | ||
LTO.h | ||
MapFile.cpp | ||
MapFile.h | ||
MarkLive.cpp | ||
MarkLive.h | ||
MinGW.cpp | ||
MinGW.h | ||
Options.td | ||
PDB.cpp | ||
PDB.h | ||
README.md | ||
Symbols.cpp | ||
Symbols.h | ||
SymbolTable.cpp | ||
SymbolTable.h | ||
TypeMerger.h | ||
Writer.cpp | ||
Writer.h |
See docs/NewLLD.rst