diff options
author | Jordan Rupprecht <rupprecht@google.com> | 2025-07-23 15:46:49 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-07-23 15:46:49 -0500 |
commit | 34447efd4614cfc8f17aa5cb7305f76ebaf6eaf5 (patch) | |
tree | 721885fccd83e16dad608bdbdd94d50c9e734d4c /clang/test | |
parent | 203ea0a97e827f68b406ca0f350e971a132e58b9 (diff) | |
download | llvm-34447efd4614cfc8f17aa5cb7305f76ebaf6eaf5.zip llvm-34447efd4614cfc8f17aa5cb7305f76ebaf6eaf5.tar.gz llvm-34447efd4614cfc8f17aa5cb7305f76ebaf6eaf5.tar.bz2 |
[clang][test] Specify value of `-fopenmp=libomp` for test. (#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.
Diffstat (limited to 'clang/test')
-rw-r--r-- | clang/test/Driver/offload-target.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/Driver/offload-target.c b/clang/test/Driver/offload-target.c index 123ecd3..23a2cf2 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 |