diff --git a/src/appleseed/foundation/platform/system.cpp b/src/appleseed/foundation/platform/system.cpp index 20c841d0b1..0cbed320a0 100644 --- a/src/appleseed/foundation/platform/system.cpp +++ b/src/appleseed/foundation/platform/system.cpp @@ -71,7 +71,9 @@ #include #include #include +#ifdef APPLESEED_X86 #include +#endif // Linux. #elif defined __linux__ @@ -285,6 +287,7 @@ std::uint64_t System::get_peak_process_virtual_memory_size() namespace { +#ifdef APPLESEED_X86 // EAX is set to the value of `index`. Results are returned in `cpuinfo`: // cpuinfo[0] == EAX // cpuinfo[1] == EBX @@ -307,6 +310,7 @@ namespace __asm__ __volatile__("xgetbv" : "=a"(eax), "=d"(edx) : "c"(index)); return (static_cast(edx) << 32) | eax; } +#endif std::size_t get_system_value(const char* name) {