[Lldb-commits] [lldb] [LLDB][test] Update Makefile.rules to support Windows host+Linux target (PR #99266)

Pavel Labath via lldb-commits lldb-commits at lists.llvm.org
Wed Jul 17 05:14:55 PDT 2024


================
@@ -456,21 +492,15 @@ ifeq (1, $(USE_SYSTEM_STDLIB))
         endif
         CXXFLAGS += -nostdlib++ -nostdinc++ -cxx-isystem $(SDKROOT)/usr/include/c++/v1
         LDFLAGS += -L$(SDKROOT)/usr/lib -Wl,-rpath,$(SDKROOT)/usr/lib -lc++
+    else
+        ifneq (,$(findstring clang,$(CC)))
+            # Force clang looking for the gcc's headers at specific rootfs folder.
+            CXXFLAGS += -stdlib=libstdc++ $(GCC_TOOLCHAIN_FLAGS)
----------------
labath wrote:

..and then change this to not pass any flags by default? (I don't know what `-stdlib=libstdc++` will do for windows, but I don't expect it to go down well)

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


More information about the lldb-commits mailing list