summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lld/COFF/Driver.cpp3
-rw-r--r--lld/test/COFF/export.test1
-rw-r--r--lld/test/COFF/export32.test1
3 files changed, 4 insertions, 1 deletions
diff --git a/lld/COFF/Driver.cpp b/lld/COFF/Driver.cpp
index ce2db0945c0..225453291a9 100644
--- a/lld/COFF/Driver.cpp
+++ b/lld/COFF/Driver.cpp
@@ -710,7 +710,8 @@ bool LinkerDriver::link(llvm::ArrayRef<const char *> ArgsArr) {
if (!Config->Exports.empty()) {
if (fixupExports())
return false;
- writeImportLibrary();
+ if (writeImportLibrary())
+ return false;
assignExportOrdinals();
}
diff --git a/lld/test/COFF/export.test b/lld/test/COFF/export.test
index aa6343dab34..bb18ca597a6 100644
--- a/lld/test/COFF/export.test
+++ b/lld/test/COFF/export.test
@@ -2,6 +2,7 @@
#
# RUN: lld -flavor link2 /out:%t.dll /dll %t.obj /export:exportfn1 /export:exportfn2
# RUN: llvm-objdump -p %t.dll | FileCheck -check-prefix=CHECK1 %s
+# REQUIRES: winlib
CHECK1: Export Table:
CHECK1: DLL name: export.test.tmp.dll
diff --git a/lld/test/COFF/export32.test b/lld/test/COFF/export32.test
index 62ee1a66f4f..7681f877d65 100644
--- a/lld/test/COFF/export32.test
+++ b/lld/test/COFF/export32.test
@@ -2,6 +2,7 @@
#
# RUN: lld -flavor link2 /out:%t.dll /dll %t.obj /export:exportfn1 /export:exportfn2
# RUN: llvm-objdump -p %t.dll | FileCheck -check-prefix=CHECK1 %s
+# REQUIRES: winlib
# CHECK1: Export Table:
# CHECK1: DLL name: export32.test.tmp.dll
OpenPOWER on IntegriCloud