mirror of
https://github.com/ziglang/zig.git
synced 2024-11-27 07:32:44 +00:00
patch LLD to fix COFF crashing when linking twice in same process
closes #1289
This commit is contained in:
parent
02713e8d8a
commit
95f45cfc34
3
deps/lld/COFF/Driver.cpp
vendored
3
deps/lld/COFF/Driver.cpp
vendored
@ -72,6 +72,9 @@ bool link(ArrayRef<const char *> Args, bool CanExitEarly, raw_ostream &Diag) {
|
||||
exitLld(errorCount() ? 1 : 0);
|
||||
|
||||
freeArena();
|
||||
ObjFile::Instances.clear();
|
||||
ImportFile::Instances.clear();
|
||||
BitcodeFile::Instances.clear();
|
||||
return !errorCount();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user