Backed out changeset 11df51f97f13 (bug 1495293) for artifact build bustage

This commit is contained in:
Narcis Beleuzu 2018-10-02 05:36:29 +03:00
parent 46d01161d2
commit 84bc818ed3
2 changed files with 15 additions and 16 deletions

View File

@ -352,19 +352,3 @@ def win64_cargo_linker_config(linker, env):
set_config('WIN64_CARGO_LINKER_CONFIG', win64_cargo_linker_config)
# SIMD acceleration for Rust code (currently just encoding_rs)
js_option('--enable-rust-simd', env='MOZ_RUST_SIMD',
help='Enable explicit SIMD in Rust code.')
@depends('--enable-rust-simd', target)
def rust_simd(value, target):
# As of 2018-06-05, the simd crate only works on aarch64,
# armv7, x86 and x86_64.
if target.cpu in ('aarch64', 'arm', 'x86', 'x86_64') and value:
return True
set_config('MOZ_RUST_SIMD', rust_simd)
set_define('MOZ_RUST_SIMD', rust_simd)

View File

@ -648,6 +648,21 @@ set_config('MOZ_BUILD_WEBRENDER', webrender.build)
set_define('MOZ_BUILD_WEBRENDER', webrender.build)
set_config('MOZ_ENABLE_WEBRENDER', webrender.enable)
# SIMD acceleration for Rust code (currently just encoding_rs)
option('--enable-rust-simd', env='MOZ_RUST_SIMD',
help='Enable explicit SIMD in Rust code.')
@depends('--enable-rust-simd', target)
def rust_simd(value, target):
# As of 2018-06-05, the simd crate only works on aarch64,
# armv7, x86 and x86_64.
if target.cpu in ('aarch64', 'arm', 'x86', 'x86_64') and value:
return True
set_config('MOZ_RUST_SIMD', rust_simd)
set_define('MOZ_RUST_SIMD', rust_simd)
# Printing
# ==============================================================
@depends(target)