eclass/toolchain: Sync with Gentoo

It's from Gentoo commit dcaab8c1db8a33cfc110c1aecfef799b26be65ae.
This commit is contained in:
Flatcar Buildbot 2025-02-25 12:34:29 +01:00 committed by Krzesimir Nowak
parent 4a449e3454
commit a63588e32d

View File

@ -695,6 +695,7 @@ toolchain_src_prepare() {
# Workaround -march=native not working for stage1 with non-GCC (bug #933772).
if ! tc-is-gcc && [[ "${CFLAGS}${CXXFLAGS}" == *-march=native* ]] ; then
CLANG_DISABLE_CET_HACK=1
filter-flags '-march=native'
fi
if ! use vanilla ; then