Explorar el Código

-Wno-error=cast-function-type is only available for gcc 8+, change travis dist to bionic

hathach hace 6 años
padre
commit
6479ee53d5

+ 1 - 1
.travis.yml

@@ -1,5 +1,5 @@
 language: c
-dist: xenial
+dist: bionic
 compiler:
   - gcc
 

+ 3 - 0
hw/bsp/circuitplayground_bluefruit/board.mk

@@ -12,7 +12,10 @@ CFLAGS += \
 CFLAGS += -Wno-error=undef -Wno-error=unused-parameter
 
 # 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
+endif
 
 # All source paths should be relative to the top level.
 LD_FILE = hw/bsp/circuitplayground_bluefruit/nrf52840_s140_v6.ld

+ 3 - 0
hw/bsp/feather_nrf52840_express/board.mk

@@ -12,7 +12,10 @@ CFLAGS += \
 CFLAGS += -Wno-error=undef -Wno-error=unused-parameter
 
 # 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
+endif
 
 # All source paths should be relative to the top level.
 LD_FILE = hw/bsp/feather_nrf52840_express/nrf52840_s140_v6.ld

+ 3 - 0
hw/bsp/pca10056/board.mk

@@ -12,7 +12,10 @@ CFLAGS += \
 CFLAGS += -Wno-error=undef -Wno-error=unused-parameter
 
 # 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
+endif
 
 # All source paths should be relative to the top level.
 LD_FILE = hw/mcu/nordic/nrfx/mdk/nrf52840_xxaa.ld

+ 3 - 0
hw/bsp/pca10059/board.mk

@@ -12,7 +12,10 @@ CFLAGS += \
 CFLAGS += -Wno-error=undef -Wno-error=unused-parameter
 
 # 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
+endif
 
 # All source paths should be relative to the top level.
 LD_FILE = hw/bsp/$(BOARD)/$(BOARD).ld