Skip to content

Commit 7806240

Browse files
fixup! build: allow HOST_CFLAGS to control optimization level from the environment
1 parent 29f6460 commit 7806240

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Makefile.in

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ aarch64_RUSTFLAGS := -Copt-level=3 -Ctarget-cpu=armv8.2-a
6464
arm64ec_RUSTFLAGS := -Copt-level=3 -Ctarget-cpu=armv8.2-a
6565

6666
CFLAGS = -fwrapv -fno-strict-aliasing
67-
CFLAGS += -ggdb -ffunction-sections -fdata-sections -fno-omit-frame-pointer
67+
CFLAGS += -ffunction-sections -fdata-sections -fno-omit-frame-pointer
6868
CFLAGS += -ffile-prefix-map=$(CCACHE_BASEDIR)=.
6969

7070
ifneq ($(SUPPRESS_WARNINGS),)
@@ -130,6 +130,7 @@ ifneq ($(UNSTRIPPED_BUILD),)
130130
STRIP :=
131131
INSTALL_PROGRAM_FLAGS :=
132132
MESON_STRIP_ARG :=
133+
CFLAGS += -ggdb
133134
else
134135
STRIP := $(TOOLCHAIN_PREFIX)strip
135136
INSTALL_PROGRAM_FLAGS := -s

0 commit comments

Comments
 (0)