[clang] [clang][test] Specify value of `-fopenmp=libomp` for test. (PR #150301)
Jordan Rupprecht via cfe-commits
cfe-commits at lists.llvm.org
Wed Jul 23 12:54:40 PDT 2025
https://github.com/rupprecht created https://github.com/llvm/llvm-project/pull/150301
`libomp` is the default value when unconfigured in cmake, but llvm can be configured to have `libgomp` be the default instead. Explicitly specify this value so the test does not fail when it assumes libomp is always the default.
>From 64272c6e09eeaa8515e1de26a3f9cc58b33a9a90 Mon Sep 17 00:00:00 2001
From: Jordan Rupprecht <rupprecht at google.com>
Date: Wed, 23 Jul 2025 12:51:43 -0700
Subject: [PATCH] [clang][test] Specify value of `-fopenmp=libomp` for test.
`libomp` is the default value when unconfigured in cmake, but llvm can be configured to have libgomp be the default instead. Explicitly specify this value so the test does not fail when it assumes libomp is always the default.
---
clang/test/Driver/offload-target.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/clang/test/Driver/offload-target.c b/clang/test/Driver/offload-target.c
index 123ecd3eb830e..23a2cf26eb192 100644
--- a/clang/test/Driver/offload-target.c
+++ b/clang/test/Driver/offload-target.c
@@ -10,7 +10,7 @@
// RUN: | FileCheck %s -check-prefix=CUDA
// CUDA: "nvptx64-nvidia-cuda" - "clang", inputs: ["[[INPUT:.+]]"], output: "[[NV_OBJ:.+]]"
-// RUN: %clang -### --offload-targets=amdgcn-amd-amdhsa,nvptx64-nvidia-cuda -fopenmp \
+// RUN: %clang -### --offload-targets=amdgcn-amd-amdhsa,nvptx64-nvidia-cuda -fopenmp=libomp \
// RUN: -Xarch_amdgcn --offload-arch=gfx90a -Xarch_nvptx64 --offload-arch=sm_89 \
// RUN: -nogpulib -nogpuinc %s -ccc-print-bindings 2>&1 \
// RUN: | FileCheck %s -check-prefix=OPENMP
More information about the cfe-commits
mailing list