Skip to content

Commit 14a3b22

Browse files
rupprechtmahesh-attarde
authored andcommitted
[clang][test] Specify value of -fopenmp=libomp for test. (llvm#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.
1 parent e3ae8ff commit 14a3b22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/test/Driver/offload-target.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
// RUN: | FileCheck %s -check-prefix=CUDA
1111
// CUDA: "nvptx64-nvidia-cuda" - "clang", inputs: ["[[INPUT:.+]]"], output: "[[NV_OBJ:.+]]"
1212

13-
// RUN: %clang -### --offload-targets=amdgcn-amd-amdhsa,nvptx64-nvidia-cuda -fopenmp \
13+
// RUN: %clang -### --offload-targets=amdgcn-amd-amdhsa,nvptx64-nvidia-cuda -fopenmp=libomp \
1414
// RUN: -Xarch_amdgcn --offload-arch=gfx90a -Xarch_nvptx64 --offload-arch=sm_89 \
1515
// RUN: -nogpulib -nogpuinc %s -ccc-print-bindings 2>&1 \
1616
// RUN: | FileCheck %s -check-prefix=OPENMP

0 commit comments

Comments
 (0)