|
3 | 3 | // RUN: echo "{\"%s\": {\"assembly\": \"/build/multi-threaded.s\"}, \"%S/Inputs/main.swift\": {\"assembly\": \"/build/main.s\"}}" > %t/ofms.json
|
4 | 4 | // RUN: %target-swiftc_driver -driver-print-jobs -module-name=ThisModule -wmo -num-threads 4 %S/Inputs/main.swift %s -output-file-map %t/ofms.json -S | %FileCheck -check-prefix=ASSEMBLY %s
|
5 | 5 | // RUN: %target-swiftc_driver -driver-print-jobs -module-name=ThisModule -wmo -num-threads 4 %S/Inputs/main.swift %s -c | %FileCheck -check-prefix=OBJECT %s
|
6 |
| -// RUN: %target-swiftc_driver -parseable-output -module-name=ThisModule -wmo -num-threads 4 %S/Inputs/main.swift %s -c 2> %t/parseable-output |
| 6 | +// RUN: (cd %t && %target-swiftc_driver -parseable-output -module-name=ThisModule -wmo -num-threads 4 %S/Inputs/main.swift %s -c) 2> %t/parseable-output |
7 | 7 | // RUN: cat %t/parseable-output | %FileCheck -check-prefix=PARSEABLE %s
|
8 | 8 | // RUN: (cd %t && env TMPDIR=/tmp %swiftc_driver -driver-print-jobs -module-name=ThisModule -wmo -num-threads 4 %S/Inputs/main.swift %s -o a.out ) | %FileCheck -check-prefix=EXEC %s
|
9 |
| -// RUN: echo "{\"%s\": {\"llvm-bc\": \"multi-threaded.bc\", \"object\": \"%t/multi-threaded.o\"}, \"%S/Inputs/main.swift\": {\"llvm-bc\": \"main.bc\", \"object\": \"%t/main.o\"}}" > %t/ofmo.json |
| 9 | +// RUN: echo "{\"%s\": {\"llvm-bc\": \"%t/multi-threaded.bc\", \"object\": \"%t/multi-threaded.o\"}, \"%S/Inputs/main.swift\": {\"llvm-bc\": \"%t/main.bc\", \"object\": \"%t/main.o\"}}" > %t/ofmo.json |
10 | 10 | // RUN: %target-swiftc_driver -module-name=ThisModule -wmo -num-threads 4 %S/Inputs/main.swift %s -emit-dependencies -output-file-map %t/ofmo.json -c
|
11 | 11 | // RUN: cat %t/*.d | %FileCheck -check-prefix=DEPENDENCIES %s
|
12 | 12 |
|
|
42 | 42 | // BITCODE: -frontend
|
43 | 43 | // BITCODE-DAG: -num-threads 4
|
44 | 44 | // BITCODE-DAG: {{[^ ]*}}/Inputs/main.swift {{[^ ]*}}/multi-threaded.swift
|
45 |
| -// BITCODE-DAG: -o main.bc -o multi-threaded.bc |
46 |
| -// BITCODE-DAG: -frontend -c -primary-file main.bc {{.*}} -o {{[^ ]*}}main.o |
47 |
| -// BITCODE-DAG: -frontend -c -primary-file multi-threaded.bc {{.*}} -o {{[^ ]*}}multi-threaded.o |
| 45 | +// BITCODE-DAG: -o {{.*}}/main.bc -o {{.*}}/multi-threaded.bc |
| 46 | +// BITCODE-DAG: -frontend -c -primary-file {{.*}}/main.bc {{.*}} -o {{[^ ]*}}main.o |
| 47 | +// BITCODE-DAG: -frontend -c -primary-file {{.*}}/multi-threaded.bc {{.*}} -o {{[^ ]*}}multi-threaded.o |
48 | 48 | // BITCODE-NOT: ld
|
49 | 49 |
|
50 | 50 | // PARSEABLE: "outputs": [
|
|
63 | 63 |
|
64 | 64 | // PARSEABLE2: "name": "compile"
|
65 | 65 | // PARSEABLE2: "outputs": [
|
66 |
| -// PARSEABLE2: "path": "main.bc" |
67 |
| -// PARSEABLE2: "path": "multi-threaded.bc" |
| 66 | +// PARSEABLE2: "path": "{{.*}}/main.bc" |
| 67 | +// PARSEABLE2: "path": "{{.*}}/multi-threaded.bc" |
68 | 68 | // PARSEABLE2: "name": "backend"
|
69 | 69 | // PARSEABLE2: "inputs": [
|
70 |
| -// PARSEABLE2: "main.bc" |
| 70 | +// PARSEABLE2: "{{.*}}/main.bc" |
71 | 71 | // PARSEABLE2: "outputs": [
|
72 | 72 | // PARSEABLE2: "path": "{{.*}}/main.o"
|
73 | 73 | // PARSEABLE2: "name": "backend"
|
74 | 74 | // PARSEABLE2: "inputs": [
|
75 |
| -// PARSEABLE2: "multi-threaded.bc" |
| 75 | +// PARSEABLE2: "{{.*}}/multi-threaded.bc" |
76 | 76 | // PARSEABLE2: "outputs": [
|
77 | 77 | // PARSEABLE2: "path": "{{.*}}/multi-threaded.o"
|
78 | 78 |
|
|
0 commit comments