Home
last modified time | relevance | path

Searched hist:"99 d94682de590719f9333fcf091910a9581b44c0" (Results 1 – 1 of 1) sorted by relevance

/DragonStub/
H A DMake.defaults99d94682de590719f9333fcf091910a9581b44c0 Thu Jul 13 12:43:16 UTC 2017 Nigel Croxon <ncroxon@redhat.com> [PATCH] Disable AVX instruction set on IA32 and x86_64 platforms

If gnu-efi is compiled with "-march=native" on a host that supports AVX, both
gcc and clang will use AVX instructions freely which is currently not supported
and will result in a non-functional gnu-efi build (e.g. black screen, hangs).

For now, disable AVX on IA32 and x86_64 by checking first if the compiler does
actually support the appropriate flag (-mno-avx) and use it if possible.

Credit for the compiler command line to check if a flag is supported goes to
Gentoo's awesome flag-o-matic eclass, where it is taken from. Thanks.

Signed-off-by: Matthias Dahl <matthias.dahl@binary-island.eu>
Signed-off-by: Nigel Croxon <ncroxon@redhat.com>