summaryrefslogtreecommitdiffstats
path: root/lld/ELF/Driver.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lld/ELF/Driver.cpp')
-rw-r--r--lld/ELF/Driver.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lld/ELF/Driver.cpp b/lld/ELF/Driver.cpp
index 32d4c2df35b..d1412756c96 100644
--- a/lld/ELF/Driver.cpp
+++ b/lld/ELF/Driver.cpp
@@ -89,6 +89,7 @@ bool elf::link(ArrayRef<const char *> Args, bool CanExitEarly,
Config->Argv = {Args.begin(), Args.end()};
Driver->main(Args, CanExitEarly);
+ waitForBackgroundThreads();
// Exit immediately if we don't need to return to the caller.
// This saves time because the overhead of calling destructors
OpenPOWER on IntegriCloud