Skip to content

Commit eaf50dc

Browse files
committed
[lldb][test] Disable PIE for some API tests
These tests fail when PIE is enabled by default on a platform since `target variable` can't read global string variable value before running inferior.
1 parent 7051073 commit eaf50dc

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

lldb/test/API/commands/target/basic/Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,8 @@
33
# C_SOURCES := b.c
44
# EXE := b.out
55

6+
ifndef PIE
7+
LDFLAGS := -no-pie
8+
endif
9+
610
include Makefile.rules

lldb/test/API/lang/c/global_variables/Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,8 @@ C_SOURCES := main.c
22

33
DYLIB_NAME := a
44
DYLIB_C_SOURCES := a.c
5+
ifndef PIE
6+
LDFLAGS := -no-pie
7+
endif
58

69
include Makefile.rules
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
CXX_SOURCES := main.cpp
22
CXXFLAGS_EXTRAS := -std=c++2a -fchar8_t
3+
ifndef PIE
4+
LDFLAGS := -no-pie
5+
endif
36

47
include Makefile.rules

0 commit comments

Comments
 (0)