Only the kernel needs to build with default includes disabled.

This commit is contained in:
Andreas Kling 2019-05-16 13:40:43 +02:00
parent cef161c2bc
commit 7a2da54c07
Notes: sideshowbarker 2024-07-19 14:07:03 +09:00
2 changed files with 2 additions and 1 deletions

View File

@ -85,6 +85,7 @@ OBJS = $(CXX_OBJS) Boot/boot.ao
KERNEL = kernel
CXXFLAGS += -ffreestanding -mregparm=3 -mno-80387 -mno-mmx -mno-sse -mno-sse2
CXXFLAGS += -nostdinc++ -nostdlib -nostdinc
DEFINES += -DKERNEL
LDFLAGS += -Ttext 0x10000 -Wl,-T linker.ld -nostdlib

View File

@ -1,5 +1,5 @@
ARCH_FLAGS =
STANDARD_FLAGS = -std=c++17 -nostdinc++ -nostdlib -nostdinc -Wno-sized-deallocation -fno-sized-deallocation
STANDARD_FLAGS = -std=c++17 -Wno-sized-deallocation -fno-sized-deallocation
WARNING_FLAGS = -Wextra -Wall -Wundef -Wcast-qual -Wwrite-strings -Wimplicit-fallthrough
FLAVOR_FLAGS = -fno-exceptions -fno-rtti
OPTIMIZATION_FLAGS = -Os