Add a try/catch, in case an -armv5 style argument does not match an expected ARM architecture
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user