Skip to content
Permalink
Browse files

Use NEON build flag on ARM and AArch64

  • Loading branch information
mmatyas committed May 5, 2016
1 parent 200af79 commit 0bcf35c5a815c8a53f6c73f7c2cf9b97586b3746
Showing with 6 additions and 2 deletions.
  1. +6 −2 python/servo/build_commands.py
@@ -204,9 +204,13 @@ def build(self, target=None, release=False, dev=False, jobs=None,

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:

0 comments on commit 0bcf35c

Please sign in to comment.
You can’t perform that action at this time.