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:
Alon Zakai 2015-01-15 15:06:14 -08:00
Родитель c3f8d3a7e6
Коммит e92276dbe4
1 изменённых файлов: 5 добавлений и 1 удалений

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

@ -147,7 +147,11 @@ if (settings_file) {
var value = settings[key];
if (value[0] == '@') {
// 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));
}