From a731ccd4a0bd55dd1a7a320c4c6e9bc383cb2618 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sat, 22 Feb 2020 18:39:22 +0100 Subject: [PATCH] Kernel: Build without debugging symbols by default Compiling with -g adds roughly 30% to kernel build times. Anyone who wants this can turn it on locally instead. --- Kernel/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Kernel/Makefile b/Kernel/Makefile index 835646a4d0..091503f755 100644 --- a/Kernel/Makefile +++ b/Kernel/Makefile @@ -121,11 +121,11 @@ KERNEL = 1 PROGRAM = kernel SUBPROJECT_CXXFLAGS += -pie -fPIE -ffreestanding -fbuiltin -mno-80387 -mno-mmx -mno-sse -mno-sse2 -fno-asynchronous-unwind-tables -SUBPROJECT_CXXFLAGS += -nostdlib -nostdinc -nostdinc++ -g3 +SUBPROJECT_CXXFLAGS += -nostdlib -nostdinc -nostdinc++ SUBPROJECT_CXXFLAGS += -I../Toolchain/Local/i686-pc-serenity/include/c++/9.2.0/ SUBPROJECT_CXXFLAGS += -I../Toolchain/Local/i686-pc-serenity/include/c++/9.2.0/i686-pc-serenity/ -LDFLAGS += -Wl,-T linker.ld -nostdlib -lgcc -lstdc++ -g3 +LDFLAGS += -Wl,-T linker.ld -nostdlib -lgcc -lstdc++ all: $(PROGRAM) $(MODULE_OBJS) kernel.map