21 lines · plain
1REQUIRES: x862RUN: mkdir -p %t-out3RUN: llvm-mc -triple x86_64-windows-msvc -filetype obj -o %t-out/object.obj %S/Inputs/object.s4 5Test that /noimplib writes no .lib file6 7RUN: rm -f %t-out/library.lib8RUN: lld-link -dll -machine:x64 -def:%S/Inputs/named.def -out:%t-out/library.dll %t-out/object.obj -entry:f -subsystem:console /noimplib9RUN: not test -f %t-out/library.lib10 11Just make sure the normal stuff works and then we just add /noimplib12 13RUN: lld-link -dll -machine:x64 -def:%S/Inputs/named.def -out:%t-out/library.dll %t-out/object.obj -entry:f -subsystem:console /implib:%t-out/nolibrary.lib14RUN: test -f %t-out/nolibrary.lib15 16Test that it overrides /implib as well. This is how link.exe works17 18RUN: rm -f %t-out/nolibrary.lib19RUN: lld-link -dll -machine:x64 -def:%S/Inputs/named.def -out:%t-out/library.dll %t-out/object.obj -entry:f -subsystem:console /implib:%t-out/nolibrary.lib /noimplib20RUN: not test -f %t-out/nolibrary.lib21