Skip to content

Commit 872c499

Browse files
committed
add explicit softfp flag for soft-float ABI on NEON
1 parent fa718d1 commit 872c499

3 files changed

Lines changed: 6 additions & 0 deletions

File tree

QtSLiM/QtSLiM.pro

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ contains(QMAKE_TARGET.arch, x86_64) {
5858
contains(QMAKE_TARGET.arch, arm64) {
5959
# ARM64 NEON is always available on ARM64, no compiler flag needed
6060
message("Building for ARM64; enabling NEON")
61+
QMAKE_CFLAGS += -mfloat-abi=softfp
62+
QMAKE_CXXFLAGS += -mfloat-abi=softfp
6163
DEFINES += EIDOS_HAS_NEON=1
6264
}
6365

core/core.pro

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ contains(QMAKE_TARGET.arch, x86_64) {
4141
contains(QMAKE_TARGET.arch, arm64) {
4242
# ARM64 NEON is always available on ARM64, no compiler flag needed
4343
message("Building for ARM64; enabling NEON")
44+
QMAKE_CFLAGS += -mfloat-abi=softfp
45+
QMAKE_CXXFLAGS += -mfloat-abi=softfp
4446
DEFINES += EIDOS_HAS_NEON=1
4547
}
4648

eidos/eidos.pro

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ contains(QMAKE_TARGET.arch, x86_64) {
4141
contains(QMAKE_TARGET.arch, arm64) {
4242
# ARM64 NEON is always available on ARM64, no compiler flag needed
4343
message("Building for ARM64; enabling NEON")
44+
QMAKE_CFLAGS += -mfloat-abi=softfp
45+
QMAKE_CXXFLAGS += -mfloat-abi=softfp
4446
DEFINES += EIDOS_HAS_NEON=1
4547
}
4648

0 commit comments

Comments
 (0)