ignore failed response files in compiler.js; this makes it easy to tolerate response files that are not expanded out immediately and are deferred for later expansion
This commit is contained in:
Родитель
c3f8d3a7e6
Коммит
e92276dbe4
|
@ -147,7 +147,11 @@ if (settings_file) {
|
||||||
var value = settings[key];
|
var value = settings[key];
|
||||||
if (value[0] == '@') {
|
if (value[0] == '@') {
|
||||||
// response file type thing, workaround for large inputs: value is @path-to-file
|
// response file type thing, workaround for large inputs: value is @path-to-file
|
||||||
value = JSON.parse(read(value.substr(1)));
|
try {
|
||||||
|
value = JSON.parse(read(value.substr(1)));
|
||||||
|
} catch(e) {
|
||||||
|
// continue normally; assume it is not a response file
|
||||||
|
}
|
||||||
}
|
}
|
||||||
eval(key + ' = ' + JSON.stringify(value));
|
eval(key + ' = ' + JSON.stringify(value));
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче