mirror of
https://github.com/GerbilSoft/rom-properties.git
synced 2025-06-18 11:35:38 -04:00
![]() Adding "-marm -mfpu=neon" fixed compilation, but LTO linking failed:
/usr/lib/gcc/arm-linux-gnueabihf/9/include/arm_neon.h: In function ‘rp_byte_swap_32_array_neon’:
/usr/lib/gcc/armmake[3]: Entering directory '/<<PKGBUILDDIR>>/build'
-linux-gnueabihf/9/include/arm_neon.h:11401:14: fatal error: You must enable NEON instructions (e.g. ‘-mfloat-abi=softfp’ ‘-mfpu=neon’) to use these intrinsics.
11401 | __rv.__o = __builtin_neon_vld2v4si ((const __builtin_neon_si *) __a);
| ^
compilation terminated.
lto-wrapper: fatal error: /usr/bin/c++ returned 1 exit status
I'll need to test this in qemu or similar first before trying it on
Launchpad again. For now, don't enable NEON on armhf.
...except when compiling with MSVC for Windows, since Windows on ARM
mandates NEON on both 32-bit and 64-bit.
(cherry picked from commit
|
||
---|---|---|
.. | ||
libs | ||
macros | ||
platform | ||
toolchain | ||
cmake_uninstall.cmake.in | ||
options.cmake | ||
platform.cmake |