mirror of
https://github.com/ziglang/zig.git
synced 2024-12-15 07:40:13 +00:00
LLD: fix libCOFF calling exit() instead of return
This commit is contained in:
parent
eb8440441f
commit
41da9fdb69
5
deps/lld/COFF/Driver.cpp
vendored
5
deps/lld/COFF/Driver.cpp
vendored
@ -1030,7 +1030,7 @@ void LinkerDriver::link(ArrayRef<const char *> ArgsArr) {
|
||||
if (!Args.hasArgNoClaim(OPT_INPUT)) {
|
||||
fixupExports();
|
||||
createImportLibrary(/*AsLib=*/true);
|
||||
exit(0);
|
||||
return;
|
||||
}
|
||||
|
||||
// Handle /delayload
|
||||
@ -1172,9 +1172,6 @@ void LinkerDriver::link(ArrayRef<const char *> ArgsArr) {
|
||||
|
||||
// Write the result.
|
||||
writeResult(&Symtab);
|
||||
|
||||
// Call exit to avoid calling destructors.
|
||||
exit(0);
|
||||
}
|
||||
|
||||
} // namespace coff
|
||||
|
Loading…
Reference in New Issue
Block a user