Bug 1643273 - Disable consistency check for Opcodes.h in SM(nu) job. r=jandem

Differential Revision: https://phabricator.services.mozilla.com/D78245
This commit is contained in:
Tooru Fujisawa 2020-06-04 10:19:01 +00:00
Родитель affacf5510
Коммит bb16091e78
2 изменённых файлов: 11 добавлений и 1 удалений

Просмотреть файл

@ -1,6 +1,9 @@
{
"configure-args": "--enable-warnings-as-errors --enable-rust-simd",
"debug": true,
"env": {
"JS_SMOOSH_DISABLE_OPCODE_CHECK": "1"
},
"conditional-configure-args": {
"linux64": "--enable-smoosh"
},

Просмотреть файл

@ -6,13 +6,20 @@ fn compare(name: &str, orig: &str, copied: &str) {
"{} is out of sync. \
It's possible that the bytecode generated by jsparagus is \
based on older opcodes. Please run \
crates/emitter/scripts/update_opcodes.py in jsparagus.",
update_stencil.py in jsparagus. \
You can disable this check by setting \
JS_SMOOSH_DISABLE_OPCODE_CHECK environment variable.",
name
);
}
}
fn main() {
match std::env::var("JS_SMOOSH_DISABLE_OPCODE_CHECK") {
Ok(_) => { return; },
Err(_) => {}
};
compare(
"Opcodes.h",
include_str!("../../vm/Opcodes.h"),