[libcxx-commits] [libcxx] [libc++] Use -nostdlib++ on GCC unconditionally (PR #68832)

via libcxx-commits libcxx-commits at lists.llvm.org
Thu Oct 12 14:14:18 PDT 2023


================
@@ -14,14 +14,6 @@ include(CheckCSourceCompiles)
 # link with --uwnindlib=none. Check if that option works.
 llvm_check_compiler_linker_flag(C "--unwindlib=none" CXX_SUPPORTS_UNWINDLIB_EQ_NONE_FLAG)
 
-if(WIN32 AND NOT MINGW)
----------------
EricWF wrote:

Why do you think we can remove this?

It seems to be disabling the linking of libc, I assume because we have to do something really weird in this case?

Is it possible that we're no accidentally trying to link libc? 

I guess if it passes CI, it's safe to ship.

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


More information about the libcxx-commits mailing list