|
146 | 146 | // RUN: %clang --target=x86_64-sie-ps5 %s -nostdlib++ -static -### 2>&1 | FileCheck --check-prefixes=CHECK-LD,CHECK-STATIC-CRT,CHECK-NO-LIBCPP,CHECK-STATIC-LIBC,CHECK-STATIC-CORE-LIBS %s |
147 | 147 |
|
148 | 148 | // CHECK-LD: {{ld(\.exe)?}}" |
149 | | -// CHECK-MAIN-CRT-SAME: "crt1.o" "crti.o" "crtbegin.o" |
150 | | -// CHECK-SHARED-CRT-SAME: "crti.o" "crtbeginS.o" |
151 | | -// CHECK-STATIC-CRT-SAME: "crt1.o" "crti.o" "crtbeginT.o" |
| 149 | +// CHECK-MAIN-CRT-SAME: "-l:crt1.o" "-l:crti.o" "-l:crtbegin.o" |
| 150 | +// CHECK-SHARED-CRT-SAME: "-l:crti.o" "-l:crtbeginS.o" |
| 151 | +// CHECK-STATIC-CRT-SAME: "-l:crt1.o" "-l:crti.o" "-l:crtbeginT.o" |
152 | 152 |
|
153 | 153 | // CHECK-NO-LIBC-NOT: "-lc{{(_stub_weak)?}}" |
154 | 154 | // CHECK-NO-LIBCPP-NOT: "-l{{c_stub_weak|stdc\+\+}}" |
|
161 | 161 |
|
162 | 162 | // CHECK-PTHREAD-SAME: "-lpthread" |
163 | 163 |
|
164 | | -// CHECK-MAIN-CRT-SAME: "crtend.o" "crtn.o" |
165 | | -// CHECK-SHARED-CRT-SAME: "crtendS.o" "crtn.o" |
166 | | -// CHECK-STATIC-CRT-SAME: "crtend.o" "crtn.o" |
| 164 | +// CHECK-MAIN-CRT-SAME: "-l:crtend.o" "-l:crtn.o" |
| 165 | +// CHECK-SHARED-CRT-SAME: "-l:crtendS.o" "-l:crtn.o" |
| 166 | +// CHECK-STATIC-CRT-SAME: "-l:crtend.o" "-l:crtn.o" |
167 | 167 |
|
168 | | -// CHECK-NO-CRT-NOT: "crt{{[^"]*}}.o" |
| 168 | +// CHECK-NO-CRT-NOT: crt{{[^"]*}}.o" |
169 | 169 | // CHECK-NO-LIBS-NOT: "-l{{[^"]*}}" |
170 | 170 |
|
171 | 171 | // Test the driver's control over the -fcrash-diagnostics-dir behavior with linker flags. |
|
186 | 186 |
|
187 | 187 | // Test implicit library search paths are supplied to the linker, after any |
188 | 188 | // search paths specified by the user. <sdk-root>/target/lib is implicitly |
189 | | -// added if it exists. CRT objects are found there. "." is always implicitly |
190 | | -// added to library search paths. This is long-standing behavior, unique to |
191 | | -// PlayStation toolchains. |
| 189 | +// added if it exists. CRT objects are found there if not on user search paths. |
| 190 | +// "." is always implicitly added to library search paths. These are |
| 191 | +// long-standing and entrenched behaviors, unique to PlayStation toolchains. |
192 | 192 |
|
193 | 193 | // RUN: rm -rf %t.dir && mkdir %t.dir |
194 | 194 | // RUN: env SCE_PROSPERO_SDK_DIR=%t.dir %clang --target=x64_64-sie-ps5 %s -### -Luser 2>&1 | FileCheck --check-prefixes=CHECK-NO-TARGETLIB %s |
|
200 | 200 | // CHECK-NO-TARGETLIB-SAME: "-L." |
201 | 201 |
|
202 | 202 | // RUN: mkdir -p %t.dir/myroot/target/lib |
203 | | -// RUN: touch %t.dir/myroot/target/lib/crti.o |
204 | 203 | // RUN: env SCE_PROSPERO_SDK_DIR=%t.dir/myroot %clang --target=x64_64-sie-ps5 %s -### -Luser 2>&1 | FileCheck --check-prefixes=CHECK-TARGETLIB %s |
205 | 204 | // RUN: %clang --target=x64_64-sie-ps5 %s -### -Luser --sysroot=%t.dir/myroot 2>&1 | FileCheck --check-prefixes=CHECK-TARGETLIB %s |
206 | 205 |
|
207 | 206 | // CHECK-TARGETLIB: {{ld(\.exe)?}}" |
208 | 207 | // CHECK-TARGETLIB-SAME: "-Luser" |
209 | 208 | // CHECK-TARGETLIB-SAME: "-L{{.*}}myroot{{/|\\\\}}target{{/|\\\\}}lib" |
210 | 209 | // CHECK-TARGETLIB-SAME: "-L." |
211 | | -// CHECK-TARGETLIB-SAME: "{{.*}}myroot{{/|\\\\}}target{{/|\\\\}}lib{{/|\\\\}}crti.o" |
0 commit comments