diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/sleef/android-neon.diff | |
Diffstat (limited to 'vcpkg/ports/sleef/android-neon.diff')
| -rw-r--r-- | vcpkg/ports/sleef/android-neon.diff | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/vcpkg/ports/sleef/android-neon.diff b/vcpkg/ports/sleef/android-neon.diff new file mode 100644 index 0000000..299c3a2 --- /dev/null +++ b/vcpkg/ports/sleef/android-neon.diff @@ -0,0 +1,28 @@ +diff --git a/Configure.cmake b/Configure.cmake +index c7b5023..178ea44 100644 +--- a/Configure.cmake ++++ b/Configure.cmake +@@ -253,6 +253,9 @@ set(CLANG_FLAGS_ENABLE_AVX2128 "-mavx2;-mfma") + set(CLANG_FLAGS_ENABLE_AVX512F "-mavx512f") + set(CLANG_FLAGS_ENABLE_AVX512FNOFMA "-mavx512f") + set(CLANG_FLAGS_ENABLE_NEON32 "--target=arm-linux-gnueabihf;-mcpu=cortex-a8") ++if(ANDROID) ++ list(FILTER CLANG_FLAGS_ENABLE_NEON32 EXCLUDE REGEX "^--target") ++endif() + set(CLANG_FLAGS_ENABLE_NEON32VFPV4 "-march=armv7-a;-mfpu=neon-vfpv4") + # Arm AArch64 vector extensions. + set(CLANG_FLAGS_ENABLE_SVE "-march=armv8-a+sve") +diff --git a/src/dft/CMakeLists.txt b/src/dft/CMakeLists.txt +index 526c4f8..d57c3b8 100644 +--- a/src/dft/CMakeLists.txt ++++ b/src/dft/CMakeLists.txt +@@ -173,7 +173,9 @@ if (COMPILER_SUPPORTS_SVE) + endif(COMPILER_SUPPORTS_SVE) + + if (COMPILER_SUPPORTS_NEON32) ++ if(FORCE_NEON32) + set(ISALIST_SP ${ISALIST_SP} neon32sp) ++ endif() + endif(COMPILER_SUPPORTS_NEON32) + + if (COMPILER_SUPPORTS_RVVM1) |