xref: /llvm-project/lldb/test/Shell/BuildScript/modes.test (revision 87aa9c9e4d41ed881453e2fab85b3d25f648bb55)
1*87aa9c9eSJonas DevlieghereRUN: %build -n --verbose --arch=32 --mode=compile --compiler=any -o %t/foo.out foobar.c \
2*87aa9c9eSJonas DevlieghereRUN:    | FileCheck --check-prefix=COMPILE %s
3*87aa9c9eSJonas Devlieghere
4*87aa9c9eSJonas DevlieghereRUN: %build -n --verbose --arch=32 --mode=compile --compiler=any --outdir %t foo.c bar.c \
5*87aa9c9eSJonas DevlieghereRUN:    | FileCheck --check-prefix=COMPILE-MULTI %s
6*87aa9c9eSJonas Devlieghere
7*87aa9c9eSJonas DevlieghereRUN: %build -n --verbose --arch=32 --mode=link --compiler=any -o %t/foo.exe foobar.obj \
8*87aa9c9eSJonas DevlieghereRUN:    | FileCheck --check-prefix=LINK %s
9*87aa9c9eSJonas Devlieghere
10*87aa9c9eSJonas DevlieghereRUN: %build -n --verbose --arch=32 --mode=link --compiler=any -o %t/foobar.exe foo.obj bar.obj \
11*87aa9c9eSJonas DevlieghereRUN:    | FileCheck --check-prefix=LINK-MULTI %s
12*87aa9c9eSJonas Devlieghere
13*87aa9c9eSJonas DevlieghereRUN: %build -n --verbose --arch=32 --mode=compile-and-link --compiler=any -o %t/foobar.exe foobar.c \
14*87aa9c9eSJonas DevlieghereRUN:    | FileCheck --check-prefix=BOTH %s
15*87aa9c9eSJonas Devlieghere
16*87aa9c9eSJonas DevlieghereRUN: %build -n --verbose --arch=32 --mode=compile-and-link --compiler=any -o %t/foobar.exe foo.c bar.c \
17*87aa9c9eSJonas DevlieghereRUN:    | FileCheck --check-prefix=BOTH-MULTI %s
18*87aa9c9eSJonas Devlieghere
19*87aa9c9eSJonas Devlieghere
20*87aa9c9eSJonas DevlieghereCOMPILE: compiling foobar.c -> foo.out
21*87aa9c9eSJonas Devlieghere
22*87aa9c9eSJonas DevlieghereCOMPILE-MULTI: compiling foo.c -> foo.o{{(bj)?}}
23*87aa9c9eSJonas DevlieghereCOMPILE-MULTI: compiling bar.c -> bar.o{{(bj)?}}
24*87aa9c9eSJonas Devlieghere
25*87aa9c9eSJonas Devlieghere
26*87aa9c9eSJonas DevlieghereLINK: linking foobar.obj -> foo.exe
27*87aa9c9eSJonas Devlieghere
28*87aa9c9eSJonas DevlieghereLINK-MULTI: linking foo.obj+bar.obj -> foobar.exe
29*87aa9c9eSJonas Devlieghere
30*87aa9c9eSJonas DevlieghereBOTH: compiling foobar.c -> [[OBJFOO:foobar.exe-foobar.o(bj)?]]
31*87aa9c9eSJonas DevlieghereBOTH: linking [[OBJFOO]] -> foobar.exe
32*87aa9c9eSJonas Devlieghere
33*87aa9c9eSJonas DevlieghereBOTH-MULTI: compiling foo.c -> [[OBJFOO:foobar.exe-foo.o(bj)?]]
34*87aa9c9eSJonas DevlieghereBOTH-MULTI: compiling bar.c -> [[OBJBAR:foobar.exe-bar.o(bj)?]]
35*87aa9c9eSJonas DevlieghereBOTH-MULTI: linking [[OBJFOO]]+[[OBJBAR]] -> foobar.exe
36