Skip to content

Commit ec62798

Browse files
build: don't strip early if UNSTRIPPED_BUILD is requested
1 parent 753e2fe commit ec62798

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

Makefile.in

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,9 +116,9 @@ ifeq ($(shell cc --version|grep 'clang'),)
116116
TOOLCHAIN_PREFIX :=
117117
OBJCOPY_FLAGS := -p
118118
MINGW_TYPE := gcc
119-
i386_CFLAGS += -s -mno-avx -mno-avx2 -mno-avx512f
119+
i386_CFLAGS += -mno-avx -mno-avx2 -mno-avx512f
120120
i386_CFLAGS += -fvect-cost-model=cheap -fno-semantic-interposition -fipa-pta
121-
x86_64_CFLAGS += -s -mno-avx -mno-avx2 -mno-avx512f
121+
x86_64_CFLAGS += -mno-avx -mno-avx2 -mno-avx512f
122122
x86_64_CFLAGS += -fvect-cost-model=cheap -fno-semantic-interposition -fipa-pta
123123
i386_SANITY_FLAGS := -mpreferred-stack-boundary=2
124124
else
@@ -142,6 +142,10 @@ else
142142
STRIP := $(TOOLCHAIN_PREFIX)strip
143143
INSTALL_PROGRAM_FLAGS := -s
144144
MESON_STRIP_ARG := --strip
145+
ifeq ($(shell cc --version|grep 'clang'),)
146+
i386_CFLAGS += -s
147+
x86_64_CFLAGS += -s
148+
endif
145149
endif
146150

147151
# all, all-dist and dist are basically synonyms

0 commit comments

Comments
 (0)