Add a try/catch, in case an -armv5 style argument does not match an expected ARM architecture

This commit is contained in:
Joshua Granick
2016-01-13 09:16:59 -08:00
parent b8646f1596
commit e9f7839680

View File

@@ -1658,14 +1658,18 @@ class CommandLineTools {
if (argument.substr (0, 4) == "-arm") {
var name = argument.substr (1).toUpperCase ();
var value = Type.createEnum (Architecture, name);
try {
if (value != null) {
var name = argument.substr (1).toUpperCase ();
var value = Type.createEnum (Architecture, name);
overrides.architectures.push (value);
if (value != null) {
}
overrides.architectures.push (value);
}
} catch (e:Dynamic) {}
} else if (argument == "-64") {