|
1 |
| -// RUN: %swiftc_driver_plain -emit-executable "%S/Inputs/你好.swift" -o %t.out -emit-module -emit-module-path %t.swiftmodule -emit-objc-header-path %t.h -serialize-diagnostics -emit-dependencies -parseable-output -driver-skip-execution 2>&1 | %FileCheck %s |
| 1 | +// RUN: echo -n "%S/Inputs/" > %t.rsp |
| 2 | +// RUN: cat "%S/Inputs/unicode.txt" >> %t.rsp |
| 3 | +// RUN: %swiftc_driver_plain -emit-executable @%t.rsp -o %t.out -emit-module -emit-module-path %t.swiftmodule -emit-objc-header-path %t.h -serialize-diagnostics -emit-dependencies -parseable-output -driver-skip-execution 2>&1 | %FileCheck %s |
2 | 4 |
|
3 | 5 | // XFAIL: freebsd, linux
|
4 | 6 |
|
|
63 | 65 | // CHECK-NEXT: {
|
64 | 66 | // CHECK-NEXT: "kind": "began",
|
65 | 67 | // CHECK-NEXT: "name": "merge-module",
|
66 |
| -// CHECK-NEXT: "command": "{{.*[\\/]}}swift{{c?}} -frontend -merge-modules -emit-module {{.*[\\/]}}你好-[[OUTPUT]].swiftmodule {{.*}} -o {{.*[\\/]}}parseable_output_unicode.swift.tmp.swiftmodule", |
67 |
| -// CHECK-NEXT: "command_executable": "{{.*[\\/]}}swift{{c?}}", |
| 68 | +// CHECK-NEXT: "command": "{{.*[\\/]}}swift{{c?(\.EXE)?(\\")?}} -frontend -merge-modules -emit-module {{.*[\\/]}}你好-[[OUTPUT]].swiftmodule{{(\\")?}} {{.*}} -o {{.*[\\/]}}parseable_output_unicode.swift.tmp.swiftmodule{{(\\")?}}", |
| 69 | +// CHECK-NEXT: "command_executable": "{{.*[\\/]}}swift{{c?(\.EXE)?(\\")?}}", |
68 | 70 | // CHECK-NEXT: "command_arguments": [
|
69 | 71 | // CHECK-NEXT: "-frontend",
|
70 | 72 | // CHECK-NEXT: "-merge-modules",
|
|
112 | 114 | // CHECK-NEXT: {
|
113 | 115 | // CHECK-NEXT: "kind": "began",
|
114 | 116 | // CHECK-NEXT: "name": "link",
|
115 |
| -// CHECK-NEXT: "command": "{{.*[\\/]}}ld{{(\\")?}} {{.*[\\/]}}你好-[[OUTPUT]].o {{.*}} -o {{.*[\\/]}}parseable_output_unicode.swift.tmp.out", |
116 |
| -// CHECK-NEXT: "command_executable": "{{.*[\\/]}}ld{{(\\")?}}", |
| 117 | +// CHECK-NEXT: "command": "{{.*[\\/](ld|clang\+\+.exe)(\\")?}} {{.*[\\/]}}你好-[[OUTPUT]].o{{(\\")?}}{{.*}}-o {{.*[\\/]}}parseable_output_unicode.swift.tmp.out{{(\\")?}}", |
| 118 | +// CHECK-NEXT: "command_executable": "{{.*[\\/](ld|clang\+\+.exe)(\\")?}}", |
117 | 119 | // CHECK-NEXT: "command_arguments": [
|
118 |
| -// CHECK-NEXT: "{{.*[\\/]}}你好-[[OUTPUT]].o", |
| 120 | +// CHECK: "{{.*[\\/]}}你好-[[OUTPUT]].o", |
119 | 121 | // CHECK: "-o",
|
120 | 122 | // CHECK-NEXT: "{{.*[\\/]}}parseable_output_unicode.swift.tmp.out"
|
121 | 123 | // CHECK-NEXT: ],
|
|
0 commit comments