Use NEON build flag on ARM and AArch64

This commit is contained in:
Mátyás Mustoha 2016-05-05 12:15:47 +02:00
parent 200af79c4b
commit 0bcf35c5a8

View file

@ -204,9 +204,13 @@ class MachCommands(CommandBase):
build_start = time()
env = self.build_env()
# Ensure Rust uses hard floats and SIMD on ARM devices
if target:
if target.startswith('arm') or target.startswith('aarch64'):
env['RUSTFLAGS'] = env.get('RUSTFLAGS', "") + " -C target-feature=+neon"
if android:
# Ensure Rust uses hard floats on Android
env['RUSTFLAGS'] = env.get('RUSTFLAGS', "") + " -C target-feature=+neon"
# Build OpenSSL for android
make_cmd = ["make"]
if jobs is not None: