Skip to content

Commit fee09ae

Browse files
committed
clang: Remove requires system-linux from some driver tests
Works for me on macos.
1 parent d3ec46a commit fee09ae

File tree

7 files changed

+3
-10
lines changed

7 files changed

+3
-10
lines changed

clang/test/Driver/amdgpu-hip-system-arch.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// REQUIRES: system-linux
21
// REQUIRES: shell
32

43
// RUN: mkdir -p %t

clang/test/Driver/amdgpu-openmp-system-arch-fail.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// REQUIRES: system-linux
21
// REQUIRES: shell
32

43
// RUN: mkdir -p %t

clang/test/Driver/hip-partial-link.hip

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// REQUIRES: x86-registered-target, amdgpu-registered-target, lld, system-linux
1+
// REQUIRES: x86-registered-target, amdgpu-registered-target, lld
22

33
// RUN: %clang -x hip --target=x86_64-unknown-linux-gnu --no-offload-new-driver \
44
// RUN: --offload-arch=gfx906 -c -nostdinc -nogpuinc -nohipwrapperinc \

clang/test/Driver/hip-temps-linux.hip

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// REQUIRES: x86-registered-target
22
// REQUIRES: amdgpu-registered-target
3-
// REQUIRES: system-linux
43

54
// Check no temporary files or directores are left after compilation.
65
// RUN: rm -rf %t/mytmp

clang/test/Driver/linker-wrapper.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
// REQUIRES: nvptx-registered-target
33
// REQUIRES: amdgpu-registered-target
44

5-
// REQUIRES: system-linux
6-
75
// An externally visible variable so static libraries extract.
86
__attribute__((visibility("protected"), used)) int x;
97

@@ -30,7 +28,7 @@ __attribute__((visibility("protected"), used)) int x;
3028
// RUN: clang-linker-wrapper --host-triple=x86_64-unknown-linux-gnu --dry-run --device-debug -O0 \
3129
// RUN: --linker-path=/usr/bin/ld %t.o -o a.out 2>&1 | FileCheck %s --check-prefix=NVPTX-LINK-DEBUG
3230

33-
// NVPTX-LINK-DEBUG: clang{{.*}} -o {{.*}}.img --target=nvptx64-nvidia-cuda -march=sm_70 -O2 -flto {{.*}}.o {{.*}}.o -g
31+
// NVPTX-LINK-DEBUG: clang{{.*}} -o {{.*}}.img --target=nvptx64-nvidia-cuda -march=sm_70 -O2 -flto {{.*}}.o {{.*}}.o -g
3432

3533
// RUN: clang-offload-packager -o %t.out \
3634
// RUN: --image=file=%t.elf.o,kind=openmp,triple=amdgcn-amd-amdhsa,arch=gfx908 \
@@ -93,7 +91,7 @@ __attribute__((visibility("protected"), used)) int x;
9391

9492
// CUDA: clang{{.*}} -o [[IMG_SM70:.+]] --target=nvptx64-nvidia-cuda -march=sm_70
9593
// CUDA: clang{{.*}} -o [[IMG_SM52:.+]] --target=nvptx64-nvidia-cuda -march=sm_52
96-
// CUDA: fatbinary{{.*}}-64 --create {{.*}}.fatbin --image=profile=sm_70,file=[[IMG_SM70]] --image=profile=sm_52,file=[[IMG_SM52]]
94+
// CUDA: fatbinary{{.*}}-64 --create {{.*}}.fatbin --image=profile=sm_70,file=[[IMG_SM70]] --image=profile=sm_52,file=[[IMG_SM52]]
9795
// CUDA: usr/bin/ld{{.*}} {{.*}}.openmp.image.{{.*}}.o {{.*}}.cuda.image.{{.*}}.o
9896

9997
// RUN: clang-offload-packager -o %t.out \

clang/test/Driver/nvptx-cuda-system-arch.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// REQUIRES: system-linux
21
// REQUIRES: shell
32

43
// RUN: mkdir -p %t

clang/test/Driver/openmp-system-arch.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// REQUIRES: system-linux
21
// REQUIRES: shell
32

43
// RUN: mkdir -p %t

0 commit comments

Comments
 (0)