File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
! Test the -Xoffload-linker flag that forwards link commands to the clang-linker-wrapper used
2
2
! to help link offloading device libraries
3
3
4
- ! RUN: %flang -### --target=x86_64-unknown-linux-gnu -fopenmp --offload-arch=gfx90a -Xoffload-linker a %s 2>&1 | FileCheck --check-prefixes =CHECK-XLINKER %s
4
+ ! RUN: %flang -### %s -o %t 2>&1 -fopenmp --offload-arch=gfx90a --target=aarch64-unknown-linux-gnu -nogpulib - Xoffload-linker a | FileCheck %s --check-prefix =CHECK-XLINKER
5
5
6
- ! CHECK-XLINKER: - device-linker=a{{.*}}-
6
+ ! CHECK-XLINKER: "{{[^"]*}}clang-linker-wrapper{{.*}}"{{.*}}"-- device-linker=a" {{.*}}
7
7
8
- ! RUN: %flang -### --target=x86_64-unknown-linux-gnu -fopenmp --offload-arch=gfx90a -Xoffload-linker a -Xoffload-linker-amdgcn-amd-amdhsa b %s 2>&1 | FileCheck --check-prefixes =CHECK-XLINKER-AMDGCN %s
8
+ ! RUN: %flang -### %s -o %t 2>&1 -fopenmp --offload-arch=gfx90a --target=aarch64-unknown-linux-gnu -nogpulib - Xoffload-linker a -Xoffload-linker-amdgcn-amd-amdhsa b | FileCheck %s --check-prefix =CHECK-XLINKER-AMDGCN
9
9
10
- ! CHECK-XLINKER-AMDGCN: - device-linker=a{{.*}}- device-linker=amdgcn-amd-amdhsa=b{{.*}}--
10
+ ! CHECK-XLINKER-AMDGCN: "{{[^"]*}}clang-linker-wrapper{{.*}}"{{.*}}"-- device-linker=a" {{.*}}"-- device-linker=amdgcn-amd-amdhsa=b" {{.*}}
You can’t perform that action at this time.
0 commit comments