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,6 +1658,8 @@ class CommandLineTools {
if (argument.substr (0, 4) == "-arm") {
try {
var name = argument.substr (1).toUpperCase ();
var value = Type.createEnum (Architecture, name);
@@ -1667,6 +1669,8 @@ class CommandLineTools {
}
} catch (e:Dynamic) {}
} else if (argument == "-64") {
overrides.architectures.push (Architecture.X64);