diff options
| author | Ying Yi <maggieyi666@gmail.com> | 2022-09-02 10:25:34 +0100 |
|---|---|---|
| committer | Ying Yi <maggieyi666@gmail.com> | 2022-09-05 09:59:47 +0100 |
| commit | 5de4d97a00b2a5d710892e96d77810784fd2cd5c (patch) | |
| tree | a5b2f41f0acebe2530d6d98b41592adba10579c1 | |
| parent | ab09043a1985bfb9f1e4393a29a9d83326d306fe (diff) | |
| download | llvm-5de4d97a00b2a5d710892e96d77810784fd2cd5c.zip llvm-5de4d97a00b2a5d710892e96d77810784fd2cd5c.tar.gz llvm-5de4d97a00b2a5d710892e96d77810784fd2cd5c.tar.bz2 | |
Driver tests: remove `REQUIRES: x86-registered-target` and set `--sysroot=""` to support clang with `DEFAULT_SYSROOT`.
When testing clang that has been compiled with -DDEFAULT_SYSROOT set to some path, ps4-ps5-header-search.c would fail.
The test needs to be updated.
1. Remove unnecessary REQUIRES: x86-registered-target.
2. Override sysroot to be empty string for the test to succeed when clang is configured with DEFAULT_SYSROOT.
| -rw-r--r-- | clang/test/Driver/ps4-ps5-header-search.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/clang/test/Driver/ps4-ps5-header-search.c b/clang/test/Driver/ps4-ps5-header-search.c index 6848901..59d3f2a 100644 --- a/clang/test/Driver/ps4-ps5-header-search.c +++ b/clang/test/Driver/ps4-ps5-header-search.c @@ -1,8 +1,6 @@ -// REQUIRES: x86-registered-target - /// PS4 and PS5 use the same SDK layout, so use the same tree for both. -// RUN: env SCE_ORBIS_SDK_DIR=%S/Inputs/scei-ps4_tree %clang -target x86_64-scei-ps4 -E -v %s 2>&1 | FileCheck %s --check-prefix=ENVPS4 -// RUN: env SCE_PROSPERO_SDK_DIR=%S/Inputs/scei-ps4_tree %clang -target x86_64-sie-ps5 -E -v %s 2>&1 | FileCheck %s --check-prefix=ENVPS4 +// RUN: env SCE_ORBIS_SDK_DIR=%S/Inputs/scei-ps4_tree %clang -target x86_64-scei-ps4 --sysroot="" -E -v %s 2>&1 | FileCheck %s --check-prefix=ENVPS4 +// RUN: env SCE_PROSPERO_SDK_DIR=%S/Inputs/scei-ps4_tree %clang -target x86_64-sie-ps5 --sysroot="" -E -v %s 2>&1 | FileCheck %s --check-prefix=ENVPS4 // ENVPS4: Inputs/scei-ps4_tree/target/include{{$}} // ENVPS4: Inputs/scei-ps4_tree/target/include_common{{$}} // ENVPS4-NOT: /usr/include |
