[clang] 479ffe8 - [OpenMP] Fix Xarch OpenMP test on Windows

Joseph Huber via cfe-commits cfe-commits at lists.llvm.org
Fri Feb 7 11:42:10 PST 2025


Author: Joseph Huber
Date: 2025-02-07T13:41:40-06:00
New Revision: 479ffe851bda03d7707b5aae633f231980b71344

URL: https://github.com/llvm/llvm-project/commit/479ffe851bda03d7707b5aae633f231980b71344
DIFF: https://github.com/llvm/llvm-project/commit/479ffe851bda03d7707b5aae633f231980b71344.diff

LOG: [OpenMP] Fix Xarch OpenMP test on Windows

Summary:
We don't support OpenMP offloading on Windows so this produces weird
results.

Added: 
    

Modified: 
    clang/test/Driver/offload-Xarch.c

Removed: 
    


################################################################################
diff  --git a/clang/test/Driver/offload-Xarch.c b/clang/test/Driver/offload-Xarch.c
index 18c68f2acc884b..8856dac1984650 100644
--- a/clang/test/Driver/offload-Xarch.c
+++ b/clang/test/Driver/offload-Xarch.c
@@ -35,7 +35,7 @@
 
 // Make sure that `-Xarch_amdgcn` forwards libraries to the device linker.
 // RUN: %clang -fopenmp=libomp --offload-arch=gfx90a -nogpulib -nogpuinc \
-// RUN:   -Xarch_amdgcn -Wl,-lfoo -### %s 2>&1 \
+// RUN:   --target=x86_64-unknown-linux-gnu -Xarch_amdgcn -Wl,-lfoo -### %s 2>&1 \
 // RUN: | FileCheck -check-prefix=LIBS %s
 // RUN: %clang -fopenmp=libomp --offload-arch=gfx90a -nogpulib -nogpuinc \
 // RUN:   -Xoffload-linker-amdgcn-amd-amdhsa -lfoo -### %s 2>&1 \


        


More information about the cfe-commits mailing list