Enable NEON feature to get hard floats on Android devices

This commit is contained in:
Lars Bergstrom 2016-03-25 10:50:54 -05:00
parent 0f1107baef
commit e83369dd25

View file

@ -225,6 +225,8 @@ class MachCommands(CommandBase):
build_start = time()
env = self.build_env()
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: