Skip to content

Commit 75ba84b

Browse files
committed
try to fix unnamed_symbol_lookup test for mac
1 parent bdfa13a commit 75ba84b

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

lldb/test/API/python_api/unnamed_symbol_lookup/Makefile

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,13 @@ else
1010
STRIP_COMMAND = $(STRIP) --keep-symbol=main
1111
endif
1212

13-
a.out.stripped:
14-
$(STRIP_COMMAND) -o a.out.stripped a.out
13+
a.out.stripped: a.out
14+
ifeq "$(OS)" "Darwin"
15+
echo "_main" > keep_symbols.txt
16+
$(STRIP) -s keep_symbols.txt -o a.out.stripped a.out
17+
else
18+
$(STRIP) --keep-symbol=main -o a.out.stripped a.out
19+
endif
1520

1621
ifneq "$(CODESIGN)" ""
1722
$(CODESIGN) -fs - a.out.stripped

lldb/test/API/python_api/unnamed_symbol_lookup/keep_symbols.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)