This allows using #pragma comment(lib, "foo") in MinGW built code, if built with -fms-extensions. (This works for system libraries and static libraries only, as it doesn't try to look for .dll.a. As ld.bfd doesn't support embedded defaultlib directives, this isn't in widespread use among mingw users.) Differential Revision: https://reviews.llvm.org/D53017 llvm-svn: 344124
9 lines
275 B
Plaintext
9 lines
275 B
Plaintext
# RUN: mkdir -p %t/a
|
|
# RUN: cp %p/Inputs/std64.lib %t/a/libstd64.a
|
|
|
|
# RUN: lld-link /lldmingw /out:%t.exe /entry:main /verbose \
|
|
# RUN: /defaultlib:std64.lib /subsystem:console %p/Inputs/hello64.obj \
|
|
# RUN: /libpath:%t/a 2>&1 | FileCheck %s
|
|
|
|
CHECK: a{{[/\\]}}libstd64.a
|