aboutsummaryrefslogtreecommitdiffstats
path: root/python/servo/build_commands.py
diff options
context:
space:
mode:
authorMátyás Mustoha <mmatyas@inf.u-szeged.hu>2016-05-05 12:15:47 +0200
committerMátyás Mustoha <mmatyas@inf.u-szeged.hu>2016-05-05 12:17:37 +0200
commit0bcf35c5a815c8a53f6c73f7c2cf9b97586b3746 (patch)
tree95b237a91942f66c97fced90757884669749fa33 /python/servo/build_commands.py
parent200af79c4b3bf43ad3422f5fc2a3b8e972b833ea (diff)
downloadservo-0bcf35c5a815c8a53f6c73f7c2cf9b97586b3746.tar.gz
servo-0bcf35c5a815c8a53f6c73f7c2cf9b97586b3746.zip
Use NEON build flag on ARM and AArch64
Diffstat (limited to 'python/servo/build_commands.py')
-rw-r--r--python/servo/build_commands.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/python/servo/build_commands.py b/python/servo/build_commands.py
index a9f2dfe7d93..97a3fdafde0 100644
--- a/python/servo/build_commands.py
+++ b/python/servo/build_commands.py
@@ -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: