Author: Joseph Huber Date: 2024-01-30T13:17:02-06:00 New Revision: 626fe71fa5ed79cbd41b7b29582560d7adb1220e
URL: https://github.com/llvm/llvm-project/commit/626fe71fa5ed79cbd41b7b29582560d7adb1220e DIFF: https://github.com/llvm/llvm-project/commit/626fe71fa5ed79cbd41b7b29582560d7adb1220e.diff LOG: [Clang] Fix test failing on systems without ROCm installed Summary: Forgot to specify `-nogpulib` which makes this test look for ROCm. Added: Modified: clang/test/Preprocessor/predefined-arch-macros.c Removed: ################################################################################ diff --git a/clang/test/Preprocessor/predefined-arch-macros.c b/clang/test/Preprocessor/predefined-arch-macros.c index 1b5c2eaf8e855..cc0ffdcbf2ef4 100644 --- a/clang/test/Preprocessor/predefined-arch-macros.c +++ b/clang/test/Preprocessor/predefined-arch-macros.c @@ -4325,8 +4325,8 @@ // Begin HIP host tests ----------- -// RUN: %clang -x hip -E -dM %s -o - 2>&1 --offload-host-only \ -// RUN: --offload-arch=gfx803 -target x86_64-unknown-linux \ +// RUN: %clang -x hip -E -dM %s -o - 2>&1 --offload-host-only -nogpulib \ +// RUN: -nogpuinc --offload-arch=gfx803 -target x86_64-unknown-linux \ // RUN: | FileCheck -match-full-lines %s -check-prefixes=CHECK_HIP_HOST // CHECK_HIP_HOST: #define __AMDGCN_WAVEFRONT_SIZE__ 64 // CHECK_HIP_HOST: #define __AMDGPU__ 1 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits