Skip to content

Commit 626fe71

Browse files
committed
[Clang] Fix test failing on systems without ROCm installed
Summary: Forgot to specify `-nogpulib` which makes this test look for ROCm.
1 parent 5470ea4 commit 626fe71

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/test/Preprocessor/predefined-arch-macros.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4325,8 +4325,8 @@
43254325

43264326
// Begin HIP host tests -----------
43274327

4328-
// RUN: %clang -x hip -E -dM %s -o - 2>&1 --offload-host-only \
4329-
// RUN: --offload-arch=gfx803 -target x86_64-unknown-linux \
4328+
// RUN: %clang -x hip -E -dM %s -o - 2>&1 --offload-host-only -nogpulib \
4329+
// RUN: -nogpuinc --offload-arch=gfx803 -target x86_64-unknown-linux \
43304330
// RUN: | FileCheck -match-full-lines %s -check-prefixes=CHECK_HIP_HOST
43314331
// CHECK_HIP_HOST: #define __AMDGCN_WAVEFRONT_SIZE__ 64
43324332
// CHECK_HIP_HOST: #define __AMDGPU__ 1

0 commit comments

Comments
 (0)