[clang] 647cadb - explicitly specify the -fopenmp lib in spirv-openmp-toolchain.c test
Benjamin Kramer via cfe-commits
cfe-commits at lists.llvm.org
Tue Jan 7 03:14:23 PST 2025
Author: Benjamin Kramer
Date: 2025-01-07T12:14:05+01:00
New Revision: 647cadb60af60f9748b0a2f02d7d6421588b099f
URL: https://github.com/llvm/llvm-project/commit/647cadb60af60f9748b0a2f02d7d6421588b099f
DIFF: https://github.com/llvm/llvm-project/commit/647cadb60af60f9748b0a2f02d7d6421588b099f.diff
LOG: explicitly specify the -fopenmp lib in spirv-openmp-toolchain.c test
Don't rely on the default `CLANG_DEFAULT_OPENMP_RUNTIME` env variable
which is `libomp` by default.
This was missed in 119fc720a19e047fee59d7f7446c911b158563e0
Added:
Modified:
clang/test/Driver/spirv-openmp-toolchain.c
Removed:
################################################################################
diff --git a/clang/test/Driver/spirv-openmp-toolchain.c b/clang/test/Driver/spirv-openmp-toolchain.c
index 377b2d9be0b09b..3a94d978c2d707 100644
--- a/clang/test/Driver/spirv-openmp-toolchain.c
+++ b/clang/test/Driver/spirv-openmp-toolchain.c
@@ -1,4 +1,4 @@
-// RUN: %clang -### --target=x86_64-unknown-linux-gnu -fopenmp -fopenmp-targets=spirv64-intel \
+// RUN: %clang -### --target=x86_64-unknown-linux-gnu -fopenmp=libomp -fopenmp-targets=spirv64-intel \
// RUN: --libomptarget-spirv-bc-path=%t/ -nogpulib %s 2>&1 \
// RUN: | FileCheck %s
More information about the cfe-commits
mailing list