From 9dce5f88e01beea39b34ae3f5f5231022c2e2076 Mon Sep 17 00:00:00 2001 From: Jack Lloyd Date: Fri, 23 Feb 2018 17:44:03 -0500 Subject: Do runtime endian check when CPUID is initialized Otherwise cross-endian builds (ie building big-endian for little-endian) can have massive test breakage but with no hints. --- src/lib/utils/cpuid/cpuid.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/lib/utils/cpuid') diff --git a/src/lib/utils/cpuid/cpuid.cpp b/src/lib/utils/cpuid/cpuid.cpp index 1638ab6c5..9dc56d59c 100644 --- a/src/lib/utils/cpuid/cpuid.cpp +++ b/src/lib/utils/cpuid/cpuid.cpp @@ -93,6 +93,7 @@ void CPUID::initialize() #endif + g_endian_status = runtime_check_endian(); g_processor_features |= CPUID::CPUID_INITIALIZED_BIT; } -- cgit v1.2.3