|
3 | 3 | // |
4 | 4 | // RUN: %clang -### %s 2>&1 \ |
5 | 5 | // RUN: --target=x86_64-unknown-linux -rtlib=libgcc --unwindlib=platform \ |
6 | | -// RUN: --gcc-toolchain="" -resource-dir=%S/Inputs/resource_dir \ |
| 6 | +// RUN: -resource-dir=%S/Inputs/resource_dir \ |
7 | 7 | // RUN: | FileCheck --check-prefix=RTLIB-GCC %s |
8 | 8 | // RTLIB-GCC: "-lgcc" |
9 | 9 | // RTLIB-GCC-SAME: "--as-needed" |
|
12 | 12 | // |
13 | 13 | // RUN: %clangxx -### %s 2>&1 \ |
14 | 14 | // RUN: --target=x86_64-unknown-linux -rtlib=libgcc --unwindlib=platform \ |
15 | | -// RUN: --gcc-toolchain="" -resource-dir=%S/Inputs/resource_dir \ |
| 15 | +// RUN: -resource-dir=%S/Inputs/resource_dir \ |
16 | 16 | // RUN: | FileCheck --check-prefix=RTLIB-GXX %s |
17 | 17 | // RTLIB-GXX: "-lgcc" |
18 | 18 | // RTLIB-GXX-NOT: "--as-needed" |
|
21 | 21 | // |
22 | 22 | // RUN: not %clang -### %s 2>&1 \ |
23 | 23 | // RUN: --target=x86_64-unknown-linux -rtlib=libgcc --unwindlib=libunwind \ |
24 | | -// RUN: --gcc-toolchain="" -resource-dir=%S/Inputs/resource_dir \ |
| 24 | +// RUN: -resource-dir=%S/Inputs/resource_dir \ |
25 | 25 | // RUN: | FileCheck --check-prefix=RTLIB-GCC-UNWINDLIB-COMPILER-RT %s |
26 | 26 | // RUN: not %clangxx -### %s 2>&1 \ |
27 | 27 | // RUN: --target=x86_64-unknown-linux -rtlib=libgcc --unwindlib=libunwind \ |
28 | | -// RUN: --gcc-toolchain="" -resource-dir=%S/Inputs/resource_dir \ |
| 28 | +// RUN: -resource-dir=%S/Inputs/resource_dir \ |
29 | 29 | // RUN: | FileCheck --check-prefix=RTLIB-GCC-UNWINDLIB-COMPILER-RT %s |
30 | 30 | // RTLIB-GCC-UNWINDLIB-COMPILER-RT: "-lgcc" |
31 | 31 | // RTLIB-GCC-UNWINDLIB-COMPILER-RT-SAME: "--as-needed" |
|
35 | 35 | // RUN: not %clang -### %s 2>&1 \ |
36 | 36 | // RUN: --target=x86_64-unknown-linux -rtlib=libgcc --unwindlib=libunwind \ |
37 | 37 | // RUN: -shared-libgcc \ |
38 | | -// RUN: --gcc-toolchain="" -resource-dir=%S/Inputs/resource_dir \ |
| 38 | +// RUN: -resource-dir=%S/Inputs/resource_dir \ |
39 | 39 | // RUN: | FileCheck --check-prefix=RTLIB-GCC-SHARED-UNWINDLIB-COMPILER-RT %s |
40 | 40 | // RTLIB-GCC-SHARED-UNWINDLIB-COMPILER-RT: "-l:libunwind.so" |
41 | 41 | // RTLIB-GCC-SHARED-UNWINDLIB-COMPILER-RT-SAME: "-lgcc" |
42 | 42 | // |
43 | 43 | // RUN: not %clang -### %s 2>&1 \ |
44 | 44 | // RUN: --target=x86_64-unknown-linux -rtlib=libgcc --unwindlib=libunwind \ |
45 | 45 | // RUN: -static-libgcc \ |
46 | | -// RUN: --gcc-toolchain="" -resource-dir=%S/Inputs/resource_dir \ |
| 46 | +// RUN: -resource-dir=%S/Inputs/resource_dir \ |
47 | 47 | // RUN: | FileCheck --check-prefix=RTLIB-GCC-STATIC-UNWINDLIB-COMPILER-RT %s |
48 | 48 | // RTLIB-GCC-STATIC-UNWINDLIB-COMPILER-RT: "-lgcc" |
49 | 49 | // RTLIB-GCC-STATIC-UNWINDLIB-COMPILER-RT-SAME: "-l:libunwind.a" |
50 | 50 | // |
51 | 51 | // RUN: %clang -### %s 2>&1 \ |
52 | 52 | // RUN: --target=x86_64-unknown-linux -rtlib=compiler-rt \ |
53 | | -// RUN: --gcc-toolchain="" -resource-dir=%S/Inputs/resource_dir \ |
| 53 | +// RUN: -resource-dir=%S/Inputs/resource_dir \ |
54 | 54 | // RUN: | FileCheck --check-prefix=RTLIB-COMPILER-RT %s |
55 | 55 | // RTLIB-COMPILER-RT: "{{.*}}libclang_rt.builtins.a" |
56 | 56 | // |
57 | 57 | // RUN: %clang -### %s 2>&1 \ |
58 | 58 | // RUN: --target=x86_64-unknown-linux -rtlib=compiler-rt --unwindlib=libunwind \ |
59 | | -// RUN: --gcc-toolchain="" -resource-dir=%S/Inputs/resource_dir \ |
| 59 | +// RUN: -resource-dir=%S/Inputs/resource_dir \ |
60 | 60 | // RUN: | FileCheck --check-prefix=RTLIB-COMPILER-RT-UNWINDLIB-COMPILER-RT %s |
61 | 61 | // RUN: %clangxx -### %s 2>&1 \ |
62 | 62 | // RUN: --target=x86_64-unknown-linux -rtlib=compiler-rt --unwindlib=libunwind \ |
63 | | -// RUN: --gcc-toolchain="" -resource-dir=%S/Inputs/resource_dir \ |
| 63 | +// RUN: -resource-dir=%S/Inputs/resource_dir \ |
64 | 64 | // RUN: | FileCheck --check-prefix=RTLIB-COMPILER-RT-UNWINDLIB-COMPILER-RT %s |
65 | 65 | // RTLIB-COMPILER-RT-UNWINDLIB-COMPILER-RT: "{{.*}}libclang_rt.builtins.a" |
66 | 66 | // RTLIB-COMPILER-RT-UNWINDLIB-COMPILER-RT-SAME: "--as-needed" |
|
69 | 69 | // |
70 | 70 | // RUN: %clang -### %s 2>&1 \ |
71 | 71 | // RUN: --target=x86_64-unknown-linux -rtlib=compiler-rt --unwindlib=libgcc \ |
72 | | -// RUN: --gcc-toolchain="" -resource-dir=%S/Inputs/resource_dir \ |
| 72 | +// RUN: -resource-dir=%S/Inputs/resource_dir \ |
73 | 73 | // RUN: | FileCheck --check-prefix=RTLIB-COMPILER-RT-UNWINDLIB-GCC %s |
74 | 74 | // RTLIB-COMPILER-RT-UNWINDLIB-GCC: "{{.*}}libclang_rt.builtins.a" |
75 | 75 | // RTLIB-COMPILER-RT-UNWINDLIB-GCC-SAME: "-lgcc_s" |
76 | 76 | // |
77 | 77 | // RUN: %clang -### %s 2>&1 \ |
78 | 78 | // RUN: --target=x86_64-unknown-linux -rtlib=compiler-rt --unwindlib=libgcc \ |
79 | | -// RUN: -static --gcc-toolchain="" -resource-dir=%S/Inputs/resource_dir \ |
| 79 | +// RUN: -static -resource-dir=%S/Inputs/resource_dir \ |
80 | 80 | // RUN: | FileCheck --check-prefix=RTLIB-COMPILER-RT-UNWINDLIB-GCC-STATIC %s |
81 | 81 | // RTLIB-COMPILER-RT-UNWINDLIB-GCC-STATIC: "{{.*}}libclang_rt.builtins.a" |
82 | 82 | // RTLIB-COMPILER-RT-UNWINDLIB-GCC-STATIC-SAME: "-lgcc_eh" |
83 | 83 | // |
84 | 84 | // RUN: not %clang %s 2> %t.err \ |
85 | 85 | // RUN: --target=x86_64-unknown-linux -rtlib=libgcc --unwindlib=libunwind \ |
86 | | -// RUN: --gcc-toolchain="" -resource-dir=%S/Inputs/resource_dir \ |
| 86 | +// RUN: -resource-dir=%S/Inputs/resource_dir \ |
87 | 87 | // RUN: FileCheck --input-file=%t.err --check-prefix=RTLIB-GCC-UNWINDLIB-COMPILER_RT %s |
88 | 88 | // RTLIB-GCC-UNWINDLIB-COMPILER_RT: "{{[.|\\\n]*}}--rtlib=libgcc requires --unwindlib=libgcc" |
89 | 89 | // |
|
97 | 97 | // RUN: %clang -### %s 2>&1 \ |
98 | 98 | // RUN: --target=x86_64-w64-mingw32 -rtlib=compiler-rt --unwindlib=libunwind \ |
99 | 99 | // RUN: -shared-libgcc \ |
100 | | -// RUN: --gcc-toolchain="" \ |
101 | 100 | // RUN: | FileCheck --check-prefix=MINGW-RTLIB-COMPILER-RT-SHARED-UNWINDLIB-COMPILER-RT %s |
102 | 101 | // MINGW-RTLIB-COMPILER-RT-SHARED-UNWINDLIB-COMPILER-RT: "{{.*}}libclang_rt.builtins-x86_64.a" |
103 | 102 | // MINGW-RTLIB-COMPILER-RT-SHARED-UNWINDLIB-COMPILER-RT-SAME: "-l:libunwind.dll.a" |
104 | 103 | // |
105 | 104 | // RUN: %clang -### %s 2>&1 \ |
106 | 105 | // RUN: --target=x86_64-w64-mingw32 -rtlib=compiler-rt --unwindlib=libunwind \ |
107 | 106 | // RUN: -static-libgcc \ |
108 | | -// RUN: --gcc-toolchain="" \ |
109 | 107 | // RUN: | FileCheck --check-prefix=MINGW-RTLIB-COMPILER-RT-STATIC-UNWINDLIB-COMPILER-RT %s |
110 | 108 | // MINGW-RTLIB-COMPILER-RT-STATIC-UNWINDLIB-COMPILER-RT: "{{.*}}libclang_rt.builtins-x86_64.a" |
111 | 109 | // MINGW-RTLIB-COMPILER-RT-STATIC-UNWINDLIB-COMPILER-RT-SAME: "-l:libunwind.a" |
112 | 110 | // |
113 | 111 | // RUN: %clang -### %s 2>&1 \ |
114 | 112 | // RUN: --target=x86_64-w64-mingw32 -rtlib=compiler-rt --unwindlib=libunwind \ |
115 | | -// RUN: --gcc-toolchain="" \ |
116 | 113 | // RUN: | FileCheck --check-prefix=MINGW-RTLIB-COMPILER-RT-UNWINDLIB-COMPILER-RT %s |
117 | 114 | // RUN: %clangxx -### %s 2>&1 \ |
118 | 115 | // RUN: --target=x86_64-w64-mingw32 -rtlib=compiler-rt --unwindlib=libunwind \ |
119 | | -// RUN: --gcc-toolchain="" \ |
120 | 116 | // RUN: | FileCheck --check-prefix=MINGW-RTLIB-COMPILER-RT-UNWINDLIB-COMPILER-RT %s |
121 | 117 | // MINGW-RTLIB-COMPILER-RT-UNWINDLIB-COMPILER-RT: "{{.*}}libclang_rt.builtins-x86_64.a" |
122 | 118 | // MINGW-RTLIB-COMPILER-RT-UNWINDLIB-COMPILER-RT-SAME: "-lunwind" |
0 commit comments