1 REQUIRES: system-windows, msvc
3 RUN: %build -n --verbose --arch=32 --compiler=msvc --mode=compile-and-link -o %t/foo.exe foobar.c \
4 RUN: | FileCheck --check-prefix=32BIT %s
6 RUN: %build -n --verbose --arch=64 --compiler=msvc --mode=compile-and-link -o %t/foo.exe foobar.c \
7 RUN: | FileCheck --check-prefix=64BIT %s
9 32BIT: Script Arguments:
13 32BIT: Output: {{.*}}toolchain-msvc.test.tmp\foo.exe
14 32BIT: Nodefaultlib: False
20 32BIT: Inputs: foobar.c
21 32BIT: Cleaning {{.*}}toolchain-msvc.test.tmp\foobar.ilk
22 32BIT: Cleaning {{.*}}toolchain-msvc.test.tmp\foo.exe-foobar.obj
23 32BIT: Cleaning {{.*}}toolchain-msvc.test.tmp\foo.pdb
24 32BIT: Cleaning {{.*}}toolchain-msvc.test.tmp\foo.exe
25 32BIT: compiling foobar.c -> foo.exe-foobar.obj
26 32BIT: Command Line: {{.*}}\{{[Hh]ost[Xx](64|86)}}\{{(x86|arm)}}\cl.{{EXE|exe}}
27 32BIT: linking foo.exe-foobar.obj -> foo.exe
28 32BIT: Command Line: {{.*}}\{{[Hh]ost[Xx](64|86)}}\{{(x86|arm)}}\link.{{EXE|exe}}
30 32BIT: LIB = {{.*}}\ATLMFC\lib\{{(x86|arm)}}
31 32BIT: {{.*}}\lib\{{(x86|arm)}}
32 32BIT: {{.*}}\ucrt\{{(x86|arm)}}
33 32BIT: {{.*}}\um\{{(x86|arm)}}
34 32BIT: PATH = {{.*}}\bin\{{[Hh]ost[Xx](64|86)}}\{{(x86|x64)}}
37 64BIT: Script Arguments:
41 64BIT: Output: {{.*}}toolchain-msvc.test.tmp\foo.exe
42 64BIT: Nodefaultlib: False
48 64BIT: Inputs: foobar.c
49 64BIT: Cleaning {{.*}}toolchain-msvc.test.tmp\foobar.ilk
50 64BIT: Cleaning {{.*}}toolchain-msvc.test.tmp\foo.exe-foobar.obj
51 64BIT: Cleaning {{.*}}toolchain-msvc.test.tmp\foo.pdb
52 64BIT: Cleaning {{.*}}toolchain-msvc.test.tmp\foo.exe
53 64BIT: compiling foobar.c -> foo.exe-foobar.obj
54 64BIT: Command Line: {{.*}}\{{[Hh]ost[Xx](64|86)}}\{{(x64|arm64)}}\cl.{{EXE|exe}}
55 64BIT: linking foo.exe-foobar.obj -> foo.exe
56 64BIT: Command Line: {{.*}}\{{[Hh]ost[Xx](64|86)}}\{{(x64|arm64)}}\link.{{EXE|exe}}
58 64BIT: LIB = {{.*}}\ATLMFC\lib\{{(x64|arm64)}}
59 64BIT: {{.*}}\lib\{{(x64|arm64)}}
60 64BIT: {{.*}}\ucrt\{{(x64|arm64)}}
61 64BIT: {{.*}}\um\{{(x64|arm64)}}
62 64BIT: PATH = {{.*}}\bin\{{[Hh]ost[Xx](64|86)}}\{{(x86|x64)}}