[libcxx-commits] [libcxx] [libcxx] Add necessary compile flags for targeting the GPU (PR #99333)
Louis Dionne via libcxx-commits
libcxx-commits at lists.llvm.org
Wed Jul 31 07:17:29 PDT 2024
================
@@ -491,6 +491,15 @@ include(HandleLibcxxFlags)
# 'config-ix' use them during feature checks. It also adds them to both
# 'LIBCXX_COMPILE_FLAGS' and 'LIBCXX_LINK_FLAGS'
+# Targeting the GPU requires a clang compiler and several extra flags.
----------------
ldionne wrote:
Why does Clang require `-nogpulib`? Don't we already pass `-nodefaultlibs`?
Also, why `-flto`?
We should set this in the CMake caches -- we don't want to add any more target-specific flags in our CMake files, this is too messy.
https://github.com/llvm/llvm-project/pull/99333
More information about the libcxx-commits
mailing list