mirror of
https://github.com/ziglang/zig.git
synced 2025-12-07 14:53:08 +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);
|
exitLld(errorCount() ? 1 : 0);
|
||||||
|
|
||||||
freeArena();
|
freeArena();
|
||||||
|
ObjFile::Instances.clear();
|
||||||
|
ImportFile::Instances.clear();
|
||||||
|
BitcodeFile::Instances.clear();
|
||||||
return !errorCount();
|
return !errorCount();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user