gcc: fix toolchain crossbuild

gcc doesn't support mbranch-predict=standard on x86_64
so this is removed in toolchain pass1
This commit is contained in:
Arne Fitzenreiter
2023-12-06 08:18:42 +01:00
parent ea381f64a8
commit 5121119591

View File

@@ -43,6 +43,7 @@ CFLAGS := $(patsubst -mfloat-abi=%,,$(CFLAGS))
CFLAGS := $(filter-out -fexceptions,$(CFLAGS))
CFLAGS := $(patsubst -mindirect-branch=%,,$(CFLAGS))
CFLAGS := $(patsubst -mbranch-protection=%,,$(CFLAGS))
CFLAGS := $(patsubst -mfunction-return=%,,$(CFLAGS))
CFLAGS := $(patsubst -fstack-clash-protection,,$(CFLAGS))
CFLAGS := $(patsubst -fcf-protection,,$(CFLAGS))