зеркало из 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',
|
'unicode/utypes.h',
|
||||||
]
|
]
|
||||||
|
|
||||||
if CONFIG['ENABLE_BIGINT']:
|
|
||||||
system_headers += [
|
|
||||||
'gmp.h'
|
|
||||||
]
|
|
||||||
|
|
||||||
if CONFIG['MOZ_WAYLAND']:
|
if CONFIG['MOZ_WAYLAND']:
|
||||||
system_headers += [
|
system_headers += [
|
||||||
'xkbcommon/xkbcommon.h',
|
'xkbcommon/xkbcommon.h',
|
||||||
|
|
|
@ -109,11 +109,10 @@ def disable_export_js(value):
|
||||||
|
|
||||||
# Experimental BigInt support
|
# Experimental BigInt support
|
||||||
# =======================================================
|
# =======================================================
|
||||||
js_option('--enable-bigint',
|
js_option('--disable-bigint',
|
||||||
default=False,
|
help='{Enable|Disable} BigInt')
|
||||||
help='Enable BigInt')
|
|
||||||
|
|
||||||
@depends('--enable-bigint')
|
@depends('--disable-bigint')
|
||||||
def enable_bigint(value):
|
def enable_bigint(value):
|
||||||
if value:
|
if value:
|
||||||
return True
|
return True
|
||||||
|
@ -123,10 +122,8 @@ set_define('ENABLE_BIGINT', enable_bigint)
|
||||||
|
|
||||||
# JIT support
|
# JIT support
|
||||||
# =======================================================
|
# =======================================================
|
||||||
@depends(target, '--enable-bigint')
|
@depends(target)
|
||||||
def ion_default(target, enable_bigint):
|
def ion_default(target):
|
||||||
if enable_bigint:
|
|
||||||
return False
|
|
||||||
if target.cpu in ('x86', 'x86_64', 'arm', 'aarch64', 'mips32', 'mips64'):
|
if target.cpu in ('x86', 'x86_64', 'arm', 'aarch64', 'mips32', 'mips64'):
|
||||||
return True
|
return True
|
||||||
return False
|
return False
|
||||||
|
|
|
@ -26,9 +26,11 @@ fn main() {
|
||||||
|
|
||||||
env::set_current_dir(&js_src).unwrap();
|
env::set_current_dir(&js_src).unwrap();
|
||||||
|
|
||||||
let variant = format!("{}{}",
|
let variant = if cfg!(feature = "debugmozjs") {
|
||||||
if cfg!(feature = "bigint") { "bigint" } else { "plain" },
|
"plaindebug"
|
||||||
if cfg!(feature = "debugmozjs") { "debug" } else { "" });
|
} else {
|
||||||
|
"plain"
|
||||||
|
};
|
||||||
|
|
||||||
let python = env::var("PYTHON").unwrap_or("python2.7".into());
|
let python = env::var("PYTHON").unwrap_or("python2.7".into());
|
||||||
let mut cmd = Command::new(&python);
|
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-search=native={}/dist/bin", out_dir);
|
||||||
println!("cargo:rustc-link-lib=nspr4");
|
println!("cargo:rustc-link-lib=nspr4");
|
||||||
|
|
||||||
if cfg!(feature = "bigint") {
|
|
||||||
println!("cargo:rustc-link-lib=gmp");
|
|
||||||
}
|
|
||||||
|
|
||||||
if target.contains("windows") {
|
if target.contains("windows") {
|
||||||
println!("cargo:rustc-link-lib=winmm");
|
println!("cargo:rustc-link-lib=winmm");
|
||||||
if target.contains("gnu") {
|
if target.contains("gnu") {
|
||||||
|
|
|
@ -47,11 +47,6 @@ if CONFIG['ENABLE_INTL_API']:
|
||||||
'icu',
|
'icu',
|
||||||
]
|
]
|
||||||
|
|
||||||
if CONFIG['ENABLE_BIGINT']:
|
|
||||||
OS_LIBS += [
|
|
||||||
'gmp',
|
|
||||||
]
|
|
||||||
|
|
||||||
USE_LIBS += [
|
USE_LIBS += [
|
||||||
'nspr',
|
'nspr',
|
||||||
'zlib',
|
'zlib',
|
||||||
|
|
Загрузка…
Ссылка в новой задаче