1

rename extraflags to gccflags

This commit is contained in:
2022-07-23 14:28:46 +02:00
parent a70f8ae51f
commit d83df8c180

View File

@ -78,14 +78,14 @@ EMPTY :=
GCC = gcc
ifeq ($(CXX),$(GCC))
# Separate these as they are not compatible with clang14
EXTRAFLAGS = -mmanual-endbr -mpreferred-stack-boundary=2
GCCFLAGS = -mmanual-endbr -mpreferred-stack-boundary=2
else
EXTRAFLAGS = $(EMPTY)
GCCFLAGS = $(EMPTY)
endif
# NOTE: Need -O0 to allow paging/bluescreen to work (We need the ebp on the stack)
CFLAGS := $(CFLAGS) -O0 -m32 -march=i486 -Wall -fno-stack-protector -nostdlib -I. -g -ffreestanding -fno-pie -fno-pic -Wno-write-strings -mno-sse -mno-sse2 $(EXTRAFLAGS)
CFLAGS := $(CFLAGS) -O0 -m32 -march=i486 -Wall -fno-stack-protector -nostdlib -I. -g -ffreestanding -fno-pie -fno-pic -Wno-write-strings -mno-sse -mno-sse2 $(GCCFLAGS)
# NOTE: -std=c++17 for if constexpr and probably some other stuff
# -std=c++20 is needed for template concepts and optional references, but we don't have it available :(