-Wno-error=cast-function-type is only available for gcc 8+, change travis dist to bionic
This commit is contained in:
parent
12609f818b
commit
6479ee53d5
|
@ -1,5 +1,5 @@
|
||||||
language: c
|
language: c
|
||||||
dist: xenial
|
dist: bionic
|
||||||
compiler:
|
compiler:
|
||||||
- gcc
|
- gcc
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,10 @@ CFLAGS += \
|
||||||
CFLAGS += -Wno-error=undef -Wno-error=unused-parameter
|
CFLAGS += -Wno-error=undef -Wno-error=unused-parameter
|
||||||
|
|
||||||
# due to tusb_hal_nrf_power_event
|
# due to tusb_hal_nrf_power_event
|
||||||
|
GCCVERSION = $(firstword $(subst ., ,$(shell arm-none-eabi-gcc -dumpversion)))
|
||||||
|
ifeq ($(shell expr $(GCCVERSION) \>= 8), 1)
|
||||||
CFLAGS += -Wno-error=cast-function-type
|
CFLAGS += -Wno-error=cast-function-type
|
||||||
|
endif
|
||||||
|
|
||||||
# All source paths should be relative to the top level.
|
# All source paths should be relative to the top level.
|
||||||
LD_FILE = hw/bsp/circuitplayground_bluefruit/nrf52840_s140_v6.ld
|
LD_FILE = hw/bsp/circuitplayground_bluefruit/nrf52840_s140_v6.ld
|
||||||
|
|
|
@ -12,7 +12,10 @@ CFLAGS += \
|
||||||
CFLAGS += -Wno-error=undef -Wno-error=unused-parameter
|
CFLAGS += -Wno-error=undef -Wno-error=unused-parameter
|
||||||
|
|
||||||
# due to tusb_hal_nrf_power_event
|
# due to tusb_hal_nrf_power_event
|
||||||
|
GCCVERSION = $(firstword $(subst ., ,$(shell arm-none-eabi-gcc -dumpversion)))
|
||||||
|
ifeq ($(shell expr $(GCCVERSION) \>= 8), 1)
|
||||||
CFLAGS += -Wno-error=cast-function-type
|
CFLAGS += -Wno-error=cast-function-type
|
||||||
|
endif
|
||||||
|
|
||||||
# All source paths should be relative to the top level.
|
# All source paths should be relative to the top level.
|
||||||
LD_FILE = hw/bsp/feather_nrf52840_express/nrf52840_s140_v6.ld
|
LD_FILE = hw/bsp/feather_nrf52840_express/nrf52840_s140_v6.ld
|
||||||
|
|
|
@ -12,7 +12,10 @@ CFLAGS += \
|
||||||
CFLAGS += -Wno-error=undef -Wno-error=unused-parameter
|
CFLAGS += -Wno-error=undef -Wno-error=unused-parameter
|
||||||
|
|
||||||
# due to tusb_hal_nrf_power_event
|
# due to tusb_hal_nrf_power_event
|
||||||
|
GCCVERSION = $(firstword $(subst ., ,$(shell arm-none-eabi-gcc -dumpversion)))
|
||||||
|
ifeq ($(shell expr $(GCCVERSION) \>= 8), 1)
|
||||||
CFLAGS += -Wno-error=cast-function-type
|
CFLAGS += -Wno-error=cast-function-type
|
||||||
|
endif
|
||||||
|
|
||||||
# All source paths should be relative to the top level.
|
# All source paths should be relative to the top level.
|
||||||
LD_FILE = hw/mcu/nordic/nrfx/mdk/nrf52840_xxaa.ld
|
LD_FILE = hw/mcu/nordic/nrfx/mdk/nrf52840_xxaa.ld
|
||||||
|
|
|
@ -12,7 +12,10 @@ CFLAGS += \
|
||||||
CFLAGS += -Wno-error=undef -Wno-error=unused-parameter
|
CFLAGS += -Wno-error=undef -Wno-error=unused-parameter
|
||||||
|
|
||||||
# due to tusb_hal_nrf_power_event
|
# due to tusb_hal_nrf_power_event
|
||||||
|
GCCVERSION = $(firstword $(subst ., ,$(shell arm-none-eabi-gcc -dumpversion)))
|
||||||
|
ifeq ($(shell expr $(GCCVERSION) \>= 8), 1)
|
||||||
CFLAGS += -Wno-error=cast-function-type
|
CFLAGS += -Wno-error=cast-function-type
|
||||||
|
endif
|
||||||
|
|
||||||
# All source paths should be relative to the top level.
|
# All source paths should be relative to the top level.
|
||||||
LD_FILE = hw/bsp/$(BOARD)/$(BOARD).ld
|
LD_FILE = hw/bsp/$(BOARD)/$(BOARD).ld
|
||||||
|
|
Loading…
Reference in New Issue