forked from swiftlang/llvm-project
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[llvm-lib] Support adding short import library objects with llvm-lib
This fixes PR 42837. Differential Revision: https://reviews.llvm.org/D84465
- Loading branch information
Showing
3 changed files
with
17 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
Test that import libraries (and the members thereof) can be added to another | ||
static library. | ||
|
||
RUN: rm -rf %t | ||
RUN: mkdir -p %t | ||
|
||
RUN: echo -e "EXPORTS\nMyFunc" > %t/lib.def | ||
RUN: llvm-dlltool -m i386:x86-64 -l %t/lib.lib -d %t/lib.def -D lib.dll | ||
RUN: llvm-lib -out:%t/newlib.lib %t/lib.lib | ||
|
||
RUN: llvm-ar t %t/newlib.lib | FileCheck %s | ||
CHECK: lib.dll |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
RUN: not llvm-lib %S/Inputs/cl-gl.obj 2>&1 | FileCheck %s | ||
CHECK: not a COFF object, bitcode, archive or resource file | ||
CHECK: not a COFF object, bitcode, archive, import library or resource file |