Skip to content


Use NEON build flag on ARM and AArch64
Browse files Browse the repository at this point in the history
  • Loading branch information
mmatyas committed May 5, 2016
1 parent 200af79 commit 0bcf35c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions python/servo/
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 0bcf35c

Please sign in to comment.