From 6afa5c8b09c3703c0bd8ef449d8620a5eda4bdd5 Mon Sep 17 00:00:00 2001 From: Amelia Coutard Date: Sun, 6 Aug 2023 23:35:15 +0200 Subject: [PATCH] Added -Wfatal-errors, because it's easier to use --- Makefile | 2 +- kernel/module.mk | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 -- 2.51.0