mirror of https://github.com/ArduPilot/ardupilot
build: override opt flags for Linux build
This commit is contained in:
parent
f03315237a
commit
d73c49bebc
|
@ -25,7 +25,7 @@ endif
|
|||
|
||||
CPUFLAGS = -D_GNU_SOURCE
|
||||
CPULDFLAGS = -g
|
||||
OPTFLAGS = -O0 -g
|
||||
OPTFLAGS ?= -O0 -g
|
||||
|
||||
CXXFLAGS = -g $(CPUFLAGS) $(DEFINES) -Wa,$(LISTOPTS) $(OPTFLAGS)
|
||||
CXXFLAGS += $(WARNFLAGS) $(WARNFLAGSCXX) $(DEPFLAGS) $(CXXOPTS)
|
||||
|
|
|
@ -3,4 +3,5 @@ TOOLCHAIN = NATIVE
|
|||
include $(MK_DIR)/find_tools.mk
|
||||
|
||||
# Linux build is just the same as SITL for now
|
||||
OPTFLAGS = -O0
|
||||
include $(MK_DIR)/board_avr_sitl.mk
|
||||
|
|
Loading…
Reference in New Issue