mirror of
https://github.com/servo/servo.git
synced 2025-06-20 07:08:59 +01:00
Use NEON build flag on ARM and AArch64
This commit is contained in:
parent
200af79c4b
commit
0bcf35c5a8
1 changed files with 6 additions and 2 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue