diff options
| author | Angus Gratton <angus@redyak.com.au> | 2023-09-20 17:29:12 +1000 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2023-09-29 13:01:12 +1000 |
| commit | 2fcd28f7138ed0573da80305bec825ec38fcb013 (patch) | |
| tree | c7af87dd331dc97d5f8e82367614c7202daacd69 /py | |
| parent | 58f63497e5ee4d7915ea23929dad7d59712b7c01 (diff) | |
py/mkrules.mk: Don't strip binary if STRIP variable is unset.
This provides a way to build a non-DEBUG host binary that still has symbols
and debug information.
Document this for the unix port, and update a comment in the unix port
Makefile.
This work was funded through GitHub Sponsors.
Signed-off-by: Angus Gratton <angus@redyak.com.au>
Diffstat (limited to 'py')
| -rw-r--r-- | py/mkrules.mk | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/py/mkrules.mk b/py/mkrules.mk index a3ff85ef8..ec36346b8 100644 --- a/py/mkrules.mk +++ b/py/mkrules.mk @@ -212,8 +212,10 @@ $(BUILD)/$(PROG): $(OBJ) # we may want to compile using Thumb, but link with non-Thumb libc. $(Q)$(CC) -o $@ $^ $(LIB) $(LDFLAGS) ifndef DEBUG +ifdef STRIP $(Q)$(STRIP) $(STRIPFLAGS_EXTRA) $@ endif +endif $(Q)$(SIZE) $$(find $(BUILD) -path "$(BUILD)/build/frozen*.o") $@ clean: clean-prog |
