зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1522436 - Enable BigInt compilation by default r=jandem,terpri,froydnj
Differential Revision: https://phabricator.services.mozilla.com/D17487 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
6137d7cb9f
Коммит
585800608e
|
@ -1338,11 +1338,6 @@ if CONFIG['MOZ_SYSTEM_ICU']:
|
|||
'unicode/utypes.h',
|
||||
]
|
||||
|
||||
if CONFIG['ENABLE_BIGINT']:
|
||||
system_headers += [
|
||||
'gmp.h'
|
||||
]
|
||||
|
||||
if CONFIG['MOZ_WAYLAND']:
|
||||
system_headers += [
|
||||
'xkbcommon/xkbcommon.h',
|
||||
|
|
|
@ -109,11 +109,10 @@ def disable_export_js(value):
|
|||
|
||||
# Experimental BigInt support
|
||||
# =======================================================
|
||||
js_option('--enable-bigint',
|
||||
default=False,
|
||||
help='Enable BigInt')
|
||||
js_option('--disable-bigint',
|
||||
help='{Enable|Disable} BigInt')
|
||||
|
||||
@depends('--enable-bigint')
|
||||
@depends('--disable-bigint')
|
||||
def enable_bigint(value):
|
||||
if value:
|
||||
return True
|
||||
|
@ -123,10 +122,8 @@ set_define('ENABLE_BIGINT', enable_bigint)
|
|||
|
||||
# JIT support
|
||||
# =======================================================
|
||||
@depends(target, '--enable-bigint')
|
||||
def ion_default(target, enable_bigint):
|
||||
if enable_bigint:
|
||||
return False
|
||||
@depends(target)
|
||||
def ion_default(target):
|
||||
if target.cpu in ('x86', 'x86_64', 'arm', 'aarch64', 'mips32', 'mips64'):
|
||||
return True
|
||||
return False
|
||||
|
|
|
@ -26,9 +26,11 @@ fn main() {
|
|||
|
||||
env::set_current_dir(&js_src).unwrap();
|
||||
|
||||
let variant = format!("{}{}",
|
||||
if cfg!(feature = "bigint") { "bigint" } else { "plain" },
|
||||
if cfg!(feature = "debugmozjs") { "debug" } else { "" });
|
||||
let variant = if cfg!(feature = "debugmozjs") {
|
||||
"plaindebug"
|
||||
} else {
|
||||
"plain"
|
||||
};
|
||||
|
||||
let python = env::var("PYTHON").unwrap_or("python2.7".into());
|
||||
let mut cmd = Command::new(&python);
|
||||
|
@ -64,10 +66,6 @@ fn main() {
|
|||
println!("cargo:rustc-link-search=native={}/dist/bin", out_dir);
|
||||
println!("cargo:rustc-link-lib=nspr4");
|
||||
|
||||
if cfg!(feature = "bigint") {
|
||||
println!("cargo:rustc-link-lib=gmp");
|
||||
}
|
||||
|
||||
if target.contains("windows") {
|
||||
println!("cargo:rustc-link-lib=winmm");
|
||||
if target.contains("gnu") {
|
||||
|
|
|
@ -47,11 +47,6 @@ if CONFIG['ENABLE_INTL_API']:
|
|||
'icu',
|
||||
]
|
||||
|
||||
if CONFIG['ENABLE_BIGINT']:
|
||||
OS_LIBS += [
|
||||
'gmp',
|
||||
]
|
||||
|
||||
USE_LIBS += [
|
||||
'nspr',
|
||||
'zlib',
|
||||
|
|
Загрузка…
Ссылка в новой задаче