aboutsummaryrefslogtreecommitdiffstats
path: root/python/servo
diff options
context:
space:
mode:
Diffstat (limited to 'python/servo')
-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: