mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-25 22:13:34 +08:00
Merge branch 'version_check'
This commit is contained in:
@@ -48,6 +48,16 @@ NM = $(CROSSDEV)nm
|
|||||||
OBJCOPY = $(CROSSDEV)objcopy
|
OBJCOPY = $(CROSSDEV)objcopy
|
||||||
OBJDUMP = $(CROSSDEV)objdump
|
OBJDUMP = $(CROSSDEV)objdump
|
||||||
|
|
||||||
|
# Check if the right version of the toolchain is available
|
||||||
|
#
|
||||||
|
CROSSDEV_VER_SUPPORTED = 4.7
|
||||||
|
CROSSDEV_VER_FOUND = $(shell $(CC) -dumpversion)
|
||||||
|
|
||||||
|
ifeq (,$(findstring $(CROSSDEV_VER_SUPPORTED),$(CROSSDEV_VER_FOUND)))
|
||||||
|
$(error Unsupported version of $(CC), found: $(CROSSDEV_VER_FOUND) instead of $(CROSSDEV_VER_SUPPORTED).x)
|
||||||
|
endif
|
||||||
|
|
||||||
|
|
||||||
# XXX this is pulled pretty directly from the fmu Make.defs - needs cleanup
|
# XXX this is pulled pretty directly from the fmu Make.defs - needs cleanup
|
||||||
|
|
||||||
MAXOPTIMIZATION ?= -O3
|
MAXOPTIMIZATION ?= -O3
|
||||||
|
|||||||
Reference in New Issue
Block a user