Files
clang-p2996/llvm/test/tools/llvm-lib/implibs.test
Vadim Paretsky (Intel Americas Inc) 395ec4458f [llvm-lib] 'llvm-lib' currently cannot generate an import library from a Windows
.def file, functionality supported by 'lib'. This incompatibility is
breaking clang based Windows openmp builds. This revision adds
basic support for this feature to llvm-lib by cloning the corresponding
code from 'dlltool'.

Differential Revision:https://reviews.llvm.org/D144765
2023-03-01 20:32:35 -08:00

20 lines
578 B
Plaintext

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
Test that import libraries can be created from a def file
RUN: echo -e "NAME lib.dll\nEXPORTS\nMyFunc" > %t/implib.def
RUN: llvm-lib -out:%t/implib.lib -def:%t/implib.def -machine:x64
RUN: llvm-ar t %t/implib.lib | FileCheck %s