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

Vladislav Dzhidzhoev via lldb-commits lldb-commits at lists.llvm.org
Thu Jul 25 07:21:30 PDT 2024


================
@@ -267,7 +274,9 @@ endif
 CFLAGS += $(CFLAGS_EXTRAS)
 CXXFLAGS += -std=c++11 $(CFLAGS) $(ARCH_CXXFLAGS)
 LD = $(CC)
-LDFLAGS ?= $(CFLAGS)
+# Copy common options to the linker flags (dwarf, arch. & etc).
+# Note: we get some 'garbage' options for linker here (such as -I, --isystem & etc).
+LDFLAGS += $(CFLAGS)
----------------
dzhidzhoev wrote:

It will allow adding extra flags to LDFLAGS via cmake (`-DLLDB_TEST_USER_ARGS="--env;LDFLAGS=-flag"`) without losing things automatically added to CFLAGS

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


More information about the lldb-commits mailing list