[libcxx-commits] [clang] [compiler-rt] [libcxx] [libunwind] [llvm] [openmp] [cmake] switch to CMake's native `check_{compiler, linker}_flag` (PR #96171)

Joseph Huber via libcxx-commits libcxx-commits at lists.llvm.org
Thu Jun 20 04:59:55 PDT 2024


jhuber6 wrote:

Here's a radical question, do we really want to use CMake's support for this? I remember a discussion recently about the increasingly large amount of time spent in the CMake configuration step, and most of that time is spent during these flag checks which pretty much all compile + link some file with no parallelism. I've also had issues working with these flags when trying to cross-compile things for the GPU, namely because the compilation flags insist on checking the linker so I need to do something like `set(CMAKE_REQUIRED_FLAGS "-c -flto")` to prevent it from invoking non-LLVM binaries for NVIDIA compilation.

https://github.com/llvm/llvm-project/pull/96171


More information about the libcxx-commits mailing list