[all-commits] [llvm/llvm-project] cfbf80: [test][clang][driver] Fix test that assumes libomp...

Jordan Rupprecht via All-commits all-commits at lists.llvm.org
Mon Dec 9 20:32:57 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: cfbf809e933ce29e24cd529b057fcf0c5fe94e2e
      https://github.com/llvm/llvm-project/commit/cfbf809e933ce29e24cd529b057fcf0c5fe94e2e
  Author: Jordan Rupprecht <rupprecht at google.com>
  Date:   2024-12-09 (Mon, 09 Dec 2024)

  Changed paths:
    M clang/test/Driver/config-file.c

  Log Message:
  -----------
  [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.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list