mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-06-04 22:17:01 +08:00
[build] optimization flag can be set from airframe file
This commit is contained in:
+2
-2
@@ -27,7 +27,7 @@
|
||||
SRC_ARCH = arch/sim
|
||||
|
||||
CC = g++
|
||||
|
||||
OPT ?= 2
|
||||
SIMDIR = $(PAPARAZZI_SRC)/sw/simulator
|
||||
|
||||
# Launch with "make Q=''" to get full command display
|
||||
@@ -37,7 +37,7 @@ CFLAGS = -W -Wall
|
||||
CFLAGS += $(INCLUDES)
|
||||
CFLAGS += $($(TARGET).CFLAGS)
|
||||
CFLAGS += $(LOCAL_CFLAGS)
|
||||
CFLAGS += -O2
|
||||
CFLAGS += -O$(OPT)
|
||||
CFLAGS += -g
|
||||
|
||||
LDFLAGS += $($(TARGET).LDFLAGS)
|
||||
|
||||
Reference in New Issue
Block a user