Skip to content

Commit aa97e59

Browse files
committed
try to fix unnamed_symbol_lookup test for mac
1 parent e122840 commit aa97e59

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

lldb/test/API/python_api/unnamed_symbol_lookup/Makefile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,14 @@ include Makefile.rules
44

55
all: a.out.stripped
66

7+
ifeq "$(OS)" "Darwin"
8+
STRIP_COMMAND = $(STRIP) -s keep_symbols.txt
9+
else
10+
STRIP_COMMAND = $(STRIP) --keep-symbol=main
11+
endif
12+
713
a.out.stripped:
8-
$(STRIP) --keep-symbol=main -o a.out.stripped a.out
14+
$(STRIP_COMMAND) -o a.out.stripped a.out
915

1016
ifneq "$(CODESIGN)" ""
1117
$(CODESIGN) -fs - a.out.stripped
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
_main

0 commit comments

Comments
 (0)