From: Amelia Coutard Date: Sun, 6 Aug 2023 21:35:15 +0000 (+0200) Subject: Added -Wfatal-errors, because it's easier to use X-Git-Url: https://git.ameliathe1st.gay/?a=commitdiff_plain;h=6afa5c8b09c3703c0bd8ef449d8620a5eda4bdd5;p=voyage-au-centre-des-fichiers.git Added -Wfatal-errors, because it's easier to use --- diff --git a/Makefile b/Makefile index baf0912..d67df89 100644 --- a/Makefile +++ b/Makefile @@ -14,7 +14,7 @@ build: # Build as default target CXX := x86_64-elf-g++ CXXFLAGS ?= -O2 -CXXFLAGS := $(CXXFLAGS) -std=c++20 -fno-strict-aliasing -Wall -Wextra -Werror \ +CXXFLAGS := $(CXXFLAGS) -std=c++20 -fno-strict-aliasing -Wall -Wextra -Werror -Wfatal-errors \ -mgeneral-regs-only -fno-exceptions -fno-rtti -ffreestanding LDFLAGS ?= -O2 LDFLAGS := $(LDFLAGS) -std=c++20 -Wall -Wextra -Werror -ffreestanding diff --git a/kernel/module.mk b/kernel/module.mk index 579083d..a918f4f 100644 --- a/kernel/module.mk +++ b/kernel/module.mk @@ -19,7 +19,7 @@ TO_CLEAN += $(OUT_DIR) $(DEP_DIR) LOCAL_CXXFLAGS := $(CXXFLAGS) -mcmodel=kernel -mno-red-zone \ -isystem /usr/include -isystem /usr/include/c++/13.1.1 \ -isystem /usr/include/c++/13.1.1/x86_64-pc-linux-gnu - # The previous two lines are a dirty hack. + # The previous two lines are a dirty hack. But not that much, because it doesn't allow me to include non-freestanding headers anyways LOCAL_LDFLAGS := $(LDFLAGS) -T kernel/linker.ld -z max-page-size=0x1000 \ -mno-red-zone -mcmodel=kernel