================
@@ -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)
+               LDFLAGS += -nostdlib++ -nostdinc++
----------------
da-viper wrote:

>Isn't adding it to CXXFLAGS enough as we do above? 

clang still links to the system stdlib

>Are these flags recognised by the linker?
If the linker is clang it is recognised. I don't think the flags works with 
other linkers. It is only added if the linker is clang 

https://github.com/llvm/llvm-project/pull/164462
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to