Fix pixman build for m1

This commit is contained in:
tobil4sk
2023-03-01 22:30:37 +00:00
committed by Josh Tynjala
parent 1a1beff531
commit 54d6b72390
2 changed files with 10 additions and 10 deletions

View File

@@ -293,14 +293,14 @@
/* #undef USE_OPENMP */
/* use SSE2 compiler intrinsics */
#if defined(HX_WINDOWS) || defined(HX_MACOS) || (defined(HX_LINUX) && !defined(RASPBERRYPI))
#if defined(HX_WINDOWS) || (defined(HX_MACOS) && !defined(HXCPP_ARM64)) || (defined(HX_LINUX) && !defined(RASPBERRYPI))
#define USE_SSE2 1
#else
/* #undef USE_SSE2 */
#endif
/* use SSSE3 compiler intrinsics */
#if defined(HX_WINDOWS) || defined(HX_MACOS) || (defined(HX_LINUX) && !defined(RASPBERRYPI))
#if defined(HX_WINDOWS) || (defined(HX_MACOS) && !defined(HXCPP_ARM64)) || (defined(HX_LINUX) && !defined(RASPBERRYPI))
#define USE_SSE3 1
#else
/* #undef USE_SSE3 */

View File

@@ -23,11 +23,11 @@
<compilerflag value="-I${ANDROID_NDK_ROOT}/sources/android/cpufeatures" if="android" />
<compilerflag value="-mmmx" if="linux || mac" unless="rpi" />
<compilerflag value="-msse" if="linux || mac" unless="rpi" />
<compilerflag value="-msse2" if="linux || mac" unless="rpi" />
<compilerflag value="-msse3" if="linux || mac" unless="rpi" />
<compilerflag value="-mssse3" if="linux || mac" unless="rpi" />
<compilerflag value="-mmmx" if="linux || mac" unless="rpi || HXCPP_ARM64" />
<compilerflag value="-msse" if="linux || mac" unless="rpi || HXCPP_ARM64" />
<compilerflag value="-msse2" if="linux || mac" unless="rpi || HXCPP_ARM64" />
<compilerflag value="-msse3" if="linux || mac" unless="rpi || HXCPP_ARM64" />
<compilerflag value="-mssse3" if="linux || mac" unless="rpi || HXCPP_ARM64" />
<compilerflag value="-Wno-attributes" if="android" />
<compilerflag value="-Wno-tautological-constant-out-of-range-compare" if="mac || ios || tvos" />
@@ -57,15 +57,15 @@
<file name="${NATIVE_TOOLKIT_PATH}/pixman/pixman/pixman-linear-gradient.c" />
<file name="${NATIVE_TOOLKIT_PATH}/pixman/pixman/pixman-matrix.c" />
<file name="${NATIVE_TOOLKIT_PATH}/pixman/pixman/pixman-mips.c" />
<file name="${NATIVE_TOOLKIT_PATH}/pixman/pixman/pixman-mmx.c" if="windows || mac || linux" unless="rpi" />
<file name="${NATIVE_TOOLKIT_PATH}/pixman/pixman/pixman-mmx.c" if="windows || mac || linux" unless="rpi || HXCPP_ARM64" />
<file name="${NATIVE_TOOLKIT_PATH}/pixman/pixman/pixman-noop.c" />
<file name="${NATIVE_TOOLKIT_PATH}/pixman/pixman/pixman-ppc.c" />
<file name="${NATIVE_TOOLKIT_PATH}/pixman/pixman/pixman-radial-gradient.c" />
<file name="${NATIVE_TOOLKIT_PATH}/pixman/pixman/pixman-region16.c" />
<file name="${NATIVE_TOOLKIT_PATH}/pixman/pixman/pixman-region32.c" />
<file name="${NATIVE_TOOLKIT_PATH}/pixman/pixman/pixman-solid-fill.c" />
<file name="${NATIVE_TOOLKIT_PATH}/pixman/pixman/pixman-sse2.c" if="windows || mac || linux" unless="rpi" />
<file name="${NATIVE_TOOLKIT_PATH}/pixman/pixman/pixman-ssse3.c" if="windows || mac || linux" unless="rpi" />
<file name="${NATIVE_TOOLKIT_PATH}/pixman/pixman/pixman-sse2.c" if="windows || mac || linux" unless="rpi || HXCPP_ARM64" />
<file name="${NATIVE_TOOLKIT_PATH}/pixman/pixman/pixman-ssse3.c" if="windows || mac || linux" unless="rpi || HXCPP_ARM64" />
<file name="${NATIVE_TOOLKIT_PATH}/pixman/pixman/pixman-timer.c" />
<file name="${NATIVE_TOOLKIT_PATH}/pixman/pixman/pixman-trap.c" />
<file name="${NATIVE_TOOLKIT_PATH}/pixman/pixman/pixman-utils.c" />