Skip to content

Commit

Permalink
Remove rednudant cflags
Browse files Browse the repository at this point in the history
  • Loading branch information
cnlohr committed Feb 13, 2024
1 parent 695fc89 commit ab7100d
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions ch32v003fun/ch32v003fun.mk
Original file line number Diff line number Diff line change
Expand Up @@ -14,23 +14,12 @@ TARGET_EXT?=c
CH32V003FUN?=../../ch32v003fun
MINICHLINK?=$(CH32V003FUN)/../minichlink

CFLAGS+= \
-g -Os -flto -fdata-sections -ffunction-sections \
-static-libgcc \
-march=rv32ec \
-mabi=ilp32e \
-I/usr/include/newlib \
-I$(CH32V003FUN)/../extralibs \
-I$(CH32V003FUN) \
-nostdlib \
-I. -Wall $(EXTRA_CFLAGS)

WRITE_SECTION?=flash
SYSTEM_C?=$(CH32V003FUN)/ch32v003fun.c

ifeq ($(TARGET_MCU),CH32V003)
CFLAGS+= \
-g -Os -flto -ffunction-sections \
-g -Os -flto -ffunction-sections -fdata-sections \
-static-libgcc \
-march=rv32ec \
-mabi=ilp32e \
Expand Down

0 comments on commit ab7100d

Please sign in to comment.