[Lldb-commits] [lldb] c579020 - [lldb] Fix linker flags in lldb tests

Felipe de Azevedo Piovezan via lldb-commits lldb-commits at lists.llvm.org
Wed Jun 12 09:33:06 PDT 2024


Author: Felipe de Azevedo Piovezan
Date: 2024-06-12T09:32:54-07:00
New Revision: c5790206f719c8fac168ae488420f31800d55cf0

URL: https://github.com/llvm/llvm-project/commit/c5790206f719c8fac168ae488420f31800d55cf0
DIFF: https://github.com/llvm/llvm-project/commit/c5790206f719c8fac168ae488420f31800d55cf0.diff

LOG: [lldb] Fix linker flags in lldb tests

This is a fixup to https://github.com/llvm/llvm-project/pull/93808,
which used LDFLAGS instead of the correct LD_EXTRAS

Added: 
    

Modified: 
    lldb/test/API/commands/target/basic/Makefile
    lldb/test/API/lang/c/global_variables/Makefile
    lldb/test/API/lang/cpp/char8_t/Makefile

Removed: 
    


################################################################################
diff  --git a/lldb/test/API/commands/target/basic/Makefile b/lldb/test/API/commands/target/basic/Makefile
index e66971834b689..1f1b61dbd6316 100644
--- a/lldb/test/API/commands/target/basic/Makefile
+++ b/lldb/test/API/commands/target/basic/Makefile
@@ -4,7 +4,7 @@
 # EXE := b.out
 
 ifndef PIE
-	LDFLAGS := -no-pie
+	LD_EXTRAS := -no-pie
 endif
 
 include Makefile.rules

diff  --git a/lldb/test/API/lang/c/global_variables/Makefile b/lldb/test/API/lang/c/global_variables/Makefile
index 00c2557033d81..acd6c56470b6f 100644
--- a/lldb/test/API/lang/c/global_variables/Makefile
+++ b/lldb/test/API/lang/c/global_variables/Makefile
@@ -3,7 +3,7 @@ C_SOURCES := main.c
 DYLIB_NAME := a
 DYLIB_C_SOURCES := a.c
 ifndef PIE
-	LDFLAGS := -no-pie
+	LD_EXTRAS := -no-pie
 endif
 
 include Makefile.rules

diff  --git a/lldb/test/API/lang/cpp/char8_t/Makefile b/lldb/test/API/lang/cpp/char8_t/Makefile
index 28f982a0078d8..7ae9c7189298c 100644
--- a/lldb/test/API/lang/cpp/char8_t/Makefile
+++ b/lldb/test/API/lang/cpp/char8_t/Makefile
@@ -1,7 +1,7 @@
 CXX_SOURCES := main.cpp
 CXXFLAGS_EXTRAS := -std=c++2a -fchar8_t
 ifndef PIE
-	LDFLAGS := -no-pie
+	LD_EXTRAS := -no-pie
 endif
 
 include Makefile.rules


        


More information about the lldb-commits mailing list