Skip to content

Commit 337ce93

Browse files
committed
Add STRIP_RELEASE_BINARY option to Makefile
It is already supported by CMakeLists, might be useful to allow it to be passed through Makefile. JerryScript-DCO-1.0-Signed-off-by: Akos Kiss [email protected]
1 parent 86cdc4b commit 337ce93

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,11 @@ BUILD_NAME:=
8686
CMAKE_DEFINES:=$(CMAKE_DEFINES) -DUSE_COMPILER_DEFAULT_LIBC=$(USE_COMPILER_DEFAULT_LIBC)
8787
endif
8888

89+
# Apply strip to release binaries
90+
ifneq ($(STRIP_RELEASE_BINARY),)
91+
CMAKE_DEFINES:=$(CMAKE_DEFINES) -DSTRIP_RELEASE_BINARY=$(STRIP_RELEASE_BINARY)
92+
endif
93+
8994
# Directories
9095
export ROOT_DIR := $(shell pwd)
9196
export BUILD_DIR_PREFIX := $(ROOT_DIR)/build/obj

0 commit comments

Comments
 (0)