Kernel: Add -fbuiltin to Kernel CXXFLAGS

This allows the compiler to assume some helpful things, like strlen()
not modifying global memory and thus being a safe inlinable thing.
This commit is contained in:
Andreas Kling 2020-02-01 13:52:52 +01:00
parent 089110af93
commit 625f6c0d86
Notes: sideshowbarker 2024-07-19 09:43:59 +09:00

View File

@ -118,7 +118,7 @@ KERNEL = 1
PROGRAM = kernel
SUBPROJECT_CXXFLAGS += -pie -fPIE -ffreestanding -mno-80387 -mno-mmx -mno-sse -mno-sse2 -fno-asynchronous-unwind-tables
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 += -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/