[all-commits] [llvm/llvm-project] 61967b: [OpenMP] Replace libomp_check_linker_flag with llv...
Nikita Popov via All-commits
all-commits at lists.llvm.org
Fri Apr 21 00:48:27 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 61967bbc7d4e9f72fb1fa082fa2235b99e36b698
https://github.com/llvm/llvm-project/commit/61967bbc7d4e9f72fb1fa082fa2235b99e36b698
Author: Nikita Popov <npopov at redhat.com>
Date: 2023-04-21 (Fri, 21 Apr 2023)
Changed paths:
R openmp/runtime/cmake/LibompCheckLinkerFlag.cmake
M openmp/runtime/cmake/config-ix.cmake
Log Message:
-----------
[OpenMP] Replace libomp_check_linker_flag with llvm_check_compiler_linker_flag
Replace the custom libomp_check_linker_flag() implementation with
llvm_check_compiler_linker_flag() from the common cmake utils. Due
to the way the custom implementation is implemented (capturing
output from an entire nested cmake invocation) it can easily end
up incorrectly detecting flags as unavailable, e.g. because "error",
"unknown" or similar occurs inside compiler flags, the directory
name, etc.
Fixes https://github.com/llvm/llvm-project/issues/62240.
Differential Revision: https://reviews.llvm.org/D148798
More information about the All-commits
mailing list