From 625f6c0d8632192da564b0737b816e02ef1ead11 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sat, 1 Feb 2020 13:52:52 +0100 Subject: [PATCH] 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. --- Kernel/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Kernel/Makefile b/Kernel/Makefile index 7cf989c555..b5aac6257b 100644 --- a/Kernel/Makefile +++ b/Kernel/Makefile @@ -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/