Skip to content

Commit 0e90b0c

Browse files
committed
Add missing 'nogpulib' to tests
1 parent 8f0aceb commit 0e90b0c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

clang/test/Driver/sycl-oneapi-gpu-amdgpu.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,21 +137,21 @@
137137
// BAD_AMD_INPUT: error: SYCL target is invalid: 'amd_gpu_bad'
138138

139139
// Check the SYCL triple for AMD GPUs.
140-
// RUN: %clangxx -fsycl -fsycl-targets=amdgcn-amd-amdhsa -### \
140+
// RUN: %clangxx -fsycl -nogpulib -fsycl-targets=amdgcn-amd-amdhsa -### \
141141
// RUN: -Xsycl-target-backend --offload-arch=gfx908 \
142142
// RUN: -fsycl-libspirv-path=%S/Inputs/SYCL/libspirv.bc %s 2>&1 | \
143143
// RUN: FileCheck %s --check-prefixes=AMD-TRIPLE
144144
// AMD-TRIPLE: clang{{.*}} "-triple" "amdgcn-amd-amdhsa"
145145

146146
// Check if SYCL triples with 'Environment' component are rejected for AMD GPUs.
147-
// RUN: not %clangxx -c -fsycl -fsycl-targets=amdgcn-amd-amdhsa-sycl -### %s 2>&1 | \
147+
// RUN: not %clangxx -c -fsycl -nogpulib -fsycl-targets=amdgcn-amd-amdhsa-sycl -### %s 2>&1 | \
148148
// RUN: FileCheck %s --check-prefix=BAD_TARGET_TRIPLE_ENV
149149
// RUN: not %clang_cl -c -fsycl -fsycl-targets=amdgcn-amd-amdhsa-sycl -### %s 2>&1 | \
150150
// RUN: FileCheck %s --check-prefix=BAD_TARGET_TRIPLE_ENV
151151
// BAD_TARGET_TRIPLE_ENV: error: SYCL target is invalid: 'amdgcn-amd-amdhsa-sycl'
152152

153153
// Check for invalid SYCL triple for AMD GPUs.
154-
// RUN: not %clangxx -c -fsycl -fsycl-targets=amdgcn -### %s 2>&1 | \
154+
// RUN: not %clangxx -c -fsycl -nogpulib -fsycl-targets=amdgcn -### %s 2>&1 | \
155155
// RUN: FileCheck %s --check-prefix=BAD_TARGET_TRIPLE
156156
// RUN: not %clang_cl -c -fsycl -fsycl-targets=amdgcn-amd -### %s 2>&1 | \
157157
// RUN: FileCheck %s --check-prefix=BAD_TARGET_TRIPLE

0 commit comments

Comments
 (0)