diff options
author | Jordan Rupprecht <rupprecht@google.com> | 2024-12-09 22:32:34 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-09 22:32:34 -0600 |
commit | cfbf809e933ce29e24cd529b057fcf0c5fe94e2e (patch) | |
tree | 51225d5de3f5b969f6fed46a7d12bc5f65edbb91 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | 7c12418021a97545d7e76c876464291932f151e6 (diff) | |
download | llvm-cfbf809e933ce29e24cd529b057fcf0c5fe94e2e.zip llvm-cfbf809e933ce29e24cd529b057fcf0c5fe94e2e.tar.gz llvm-cfbf809e933ce29e24cd529b057fcf0c5fe94e2e.tar.bz2 |
[test][clang][driver] Fix test that assumes libomp default (#119319)
755519f7f661375be05750001ff11e106e6b7f87 added a test that uses
`-fopenmp`. The default configuration of CLANG_DEFAULT_OPENMP_RUNTIME is
libomp, which causes `-fopenmp` to act as `-fopenmp=libomp`. In turn,
this passes `-fopenmp` to downstream compilations. However, for other
values, e.g. `libgomp`, Clang does not know how to generate useful
openmp code, so it avoids passing the `-fopenmp` along. Fix the test to
explicitly pass `-fopenmp=libomp` to pass regardless of the configured
CLANG_DEFAULT_OPENMP_RUNTIME value.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions