summaryrefslogtreecommitdiff
path: root/hw/bsp/samd51
diff options
context:
space:
mode:
authorhathach <[email protected]>2023-03-19 12:47:05 +0700
committerhathach <[email protected]>2023-03-19 12:47:05 +0700
commit322f58ea8530e2b43d00a087b6d501776be25a00 (patch)
tree1a136349f8cc2da319f404c7b3149bc5ee80ff66 /hw/bsp/samd51
parentab0da3c30baab6eb63e55217f2b4d5a719fb86e4 (diff)
add CFLAGS_SKIP to improve sam compile time
Diffstat (limited to 'hw/bsp/samd51')
-rw-r--r--hw/bsp/samd51/family.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/bsp/samd51/family.mk b/hw/bsp/samd51/family.mk
index 3ecc5aa66..657e33438 100644
--- a/hw/bsp/samd51/family.mk
+++ b/hw/bsp/samd51/family.mk
@@ -13,8 +13,8 @@ CFLAGS += \
-nostdlib -nostartfiles \
-DCFG_TUSB_MCU=OPT_MCU_SAMD51
-# suppress warning caused by vendor mcu driver
-CFLAGS += -Wno-error=cast-qual
+# SAM driver is flooded with -Wcast-qual which slow down complication significantly
+CFLAGS_SKIP += -Wcast-qual
SRC_C += \
src/portable/microchip/samd/dcd_samd.c \