[Lldb-commits] [lldb] [lldb][test] When an external stdlib is specified do not link to the system stdlib (PR #164462)

Michael Buch via lldb-commits lldb-commits at lists.llvm.org
Tue Oct 28 02:32:10 PDT 2025


================
@@ -386,6 +386,11 @@ ifeq (,$(filter 1, $(USE_LIBSTDCPP) $(USE_LIBCPP) $(USE_SYSTEM_STDLIB)))
     ifneq "$(LIBCPP_INCLUDE_TARGET_DIR)" ""
       CXXFLAGS += -cxx-isystem $(LIBCPP_INCLUDE_TARGET_DIR)
     endif
+
+	# If `-nostdlib++` is not passed, clang will link to the system's stdlib.
+	ifeq ($(LDC), clang)
----------------
Michael137 wrote:

Let's remove this. Clang, GCC and clang-cl are all aware of this option

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


More information about the lldb-commits mailing list