macOS: fix Cycles not detecting 64 bit and failing to build with Embree

Contributed by Apple

Ref D9527, T78710
This commit is contained in:
Brecht Van Lommel 2021-02-15 17:41:30 +01:00
parent 7baf796886
commit 4ce57f6eb8
2 changed files with 2 additions and 5 deletions

View File

@ -31,8 +31,6 @@
#ifdef WITH_EMBREE
# include <embree3/rtcore_geometry.h>
# include <pmmintrin.h>
# include <xmmintrin.h>
# include "bvh/bvh_embree.h"
@ -306,8 +304,7 @@ BVHEmbree::BVHEmbree(const BVHParams &params_,
rtc_device(NULL),
build_quality(RTC_BUILD_QUALITY_REFIT)
{
_MM_SET_FLUSH_ZERO_MODE(_MM_FLUSH_ZERO_ON);
_MM_SET_DENORMALS_ZERO_MODE(_MM_DENORMALS_ZERO_ON);
SIMD_SET_FLUSH_TO_ZERO;
}
BVHEmbree::~BVHEmbree()

View File

@ -26,7 +26,7 @@
/* Bitness */
#if defined(__ppc64__) || defined(__PPC64__) || defined(__x86_64__) || defined(__ia64__) || \
defined(_M_X64)
defined(_M_X64) || defined(__aarch64__)
# define __KERNEL_64_BIT__
#endif