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