[libcxx-commits] [PATCH] D145596: [runtimes] Fixes building with CMake 3.26.

Louis Dionne via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Wed Mar 8 15:33:41 PST 2023


ldionne added inline comments.


================
Comment at: runtimes/CMakeLists.txt:147
 endif()
+# When present, the -nostdinc++ flag gets propagated to the linker flags. In
+# CMake 3.26 this causes try_compile to fail for other compile options. Which
----------------
I think it would be really nice to instead avoid passing `-nostdinc++` to the linker when we don't mean it. That would require a bit of reworking of how we detect compiler options, but that might be a good idea nonetheless. Thoughts?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D145596/new/

https://reviews.llvm.org/D145596



More information about the libcxx-commits mailing list