1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-15 11:03:00 +01:00

Fix build on FreeBSD 10

NOTE: This can be reverted once FreeBSD 10.4-RELEASE goes EoL.
This commit is contained in:
pkubaj
2018-03-20 18:47:20 +01:00
committed by Michał Janiszewski
parent 9d3e1fbedf
commit 1191f64091

View File

@@ -223,7 +223,7 @@ bool avx2_available()
// https://github.com/gcc-mirror/gcc/commit/132fa33ce998df69a9f793d63785785f4b93e6f1
// which causes it to ignore subleafs, but the new function is unavailable on Ubuntu's
// prehistoric toolchains
#if defined(OpenRCT2_CPUID_GNUC_X86)
#if defined(OpenRCT2_CPUID_GNUC_X86) && !defined(__FreeBSD__)
return __builtin_cpu_supports("avx2");
#else
// AVX2 support is declared as the 5th bit of EBX with CPUID(EAX = 7, ECX = 0).