|
8 | 8 |
|
9 | 9 | // Check that PS5 clang doesn't report a warning message when locating |
10 | 10 | // system libraries (either by looking at the value of SCE_PROSPERO_SDK_DIR |
11 | | -// or relative to the location of the compiler driver), if "-c", "-S", "-E", |
12 | | -// "--sysroot", "-nostdlib" or "-nodefaultlibs" option is specified on |
13 | | -// the command line. |
| 11 | +// or relative to the location of the compiler driver), if "-c", "-S", "-E" |
| 12 | +// or "--sysroot" option is specified on the command line. |
14 | 13 | // Otherwise, check that PS5 clang reports a warning. |
15 | 14 |
|
16 | | -// Setting up SCE_PROSPERO_SDK_DIR to existing location, which is not a PS4 SDK. |
| 15 | +// Setting up SCE_PROSPERO_SDK_DIR to existing location, which is not a PS5 SDK. |
17 | 16 | // RUN: env SCE_PROSPERO_SDK_DIR=.. %clang -Winvalid-or-nonexistent-directory -### -target x86_64-sie-ps5 %s 2>&1 | FileCheck -check-prefix=WARN-SYS-HEADERS -check-prefix=WARN-SYS-LIBS -check-prefix=NO-WARN %s |
18 | 17 |
|
19 | 18 | // RUN: env SCE_PROSPERO_SDK_DIR=.. %clang -Winvalid-or-nonexistent-directory -### -c -target x86_64-sie-ps5 %s 2>&1 | FileCheck -check-prefix=WARN-SYS-HEADERS -check-prefix=NO-WARN %s |
|
38 | 37 | // RUN: env SCE_PROSPERO_SDK_DIR=.. %clang -Winvalid-or-nonexistent-directory -### -emit-ast -isysroot foo -target x86_64-sie-ps5 %s 2>&1 | FileCheck -check-prefix=WARN-ISYSROOT -check-prefix=NO-WARN %s |
39 | 38 | // RUN: env SCE_PROSPERO_SDK_DIR=.. %clang -Winvalid-or-nonexistent-directory -### --sysroot=foo/ -isysroot foo -target x86_64-sie-ps5 %s 2>&1 | FileCheck -check-prefix=WARN-ISYSROOT -check-prefix=NO-WARN %s |
40 | 39 |
|
41 | | -// RUN: env SCE_PROSPERO_SDK_DIR=.. %clang -Winvalid-or-nonexistent-directory -### -nostdlib -target x86_64-sie-ps5 %s 2>&1 | FileCheck -check-prefix=WARN-SYS-HEADERS -check-prefix=NO-WARN %s |
42 | | -// RUN: env SCE_PROSPERO_SDK_DIR=.. %clang -Winvalid-or-nonexistent-directory -### -nodefaultlibs -target x86_64-sie-ps5 %s 2>&1 | FileCheck -check-prefix=WARN-SYS-HEADERS -check-prefix=NO-WARN %s |
43 | | - |
44 | 40 | // NO-WARN-NOT: {{warning:|error:}} |
45 | 41 | // WARN-SYS-HEADERS: warning: unable to find PS5 system headers directory |
46 | 42 | // WARN-ISYSROOT: warning: no such sysroot directory: 'foo' |
|
0 commit comments