Skip to content

Commit 7a153eb

Browse files
stephenkyle-ARMeustas
authored andcommitted
make/build: ensure NEON is enabled and tested (google#718)
Make sure the travis CI aarch32 bot tests NEON, and also that running CROSS_COMPILE=arm-linux-gnueabihf make enables the use of NEON to accelerate the back-reference copying.
1 parent ce8951c commit 7a153eb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ matrix:
7979
## testing arm via qemu on Linux
8080
###
8181
- os: linux
82-
env: BUILD_SYSTEM=cmake C_COMPILER=arm-linux-gnueabihf-gcc CXX_COMPILER=arm-linux-gnueabihf-g++
82+
env: BUILD_SYSTEM=cmake C_COMPILER=arm-linux-gnueabihf-gcc CXX_COMPILER=arm-linux-gnueabihf-g++ CFLAGS="-march=armv7-a -mfloat-abi=hard -mfpu=neon"
8383
addons:
8484
apt:
8585
sources:

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ endif
2424
# The arm-linux-gnueabi compiler defaults to Armv5. Since we only support Armv7
2525
# and beyond, we need to select Armv7 explicitly with march.
2626
ifeq ($(ARCH), arm)
27-
CFLAGS += -march=armv7-a
27+
CFLAGS += -march=armv7-a -mfloat-abi=hard -mfpu=neon
2828
endif
2929

3030
all: test

0 commit comments

Comments
 (0)