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.
This commit is contained in:
Andreas Kling 2020-02-22 18:39:22 +01:00
parent edb66f214d
commit a731ccd4a0
Notes: sideshowbarker 2024-07-19 09:09:40 +09:00

View File

@ -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