We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 87f9c89 commit 3ec436cCopy full SHA for 3ec436c
arch/riscv/build.mk
@@ -17,14 +17,11 @@ DEFINES := -DF_CPU=$(F_CLK) \
17
-DF_TIMER=$(F_TICK) \
18
-include config.h
19
20
-CROSS_COMPILE ?= riscv32-unknown-elf-
21
-CC_DEFAULT := $(CROSS_COMPILE)gcc
22
-CC_IS_CLANG := $(shell $(CC_DEFAULT) --version 2>/dev/null | grep -qi clang && echo 1)
23
# Architecture flags
24
ARCH_FLAGS = -march=rv32imzicsr -mabi=ilp32
25
26
# Common compiler flags
27
-CFLAGS += -Wall -Wextra -Werror -Wshadow -Wno-unused-parameter
+CFLAGS += -Wall -Wextra -Wshadow -Wno-unused-parameter -Werror
28
CFLAGS += -O2 -std=gnu99
29
CFLAGS += $(ARCH_FLAGS)
30
CFLAGS += -mstrict-align -ffreestanding -nostdlib -fomit-frame-pointer
0 commit comments