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") {
|
if (argument.substr (0, 4) == "-arm") {
|
||||||
|
|
||||||
var name = argument.substr (1).toUpperCase ();
|
try {
|
||||||
var value = Type.createEnum (Architecture, name);
|
|
||||||
|
|
||||||
if (value != null) {
|
|
||||||
|
|
||||||
overrides.architectures.push (value);
|
var name = argument.substr (1).toUpperCase ();
|
||||||
|
var value = Type.createEnum (Architecture, name);
|
||||||
|
|
||||||
}
|
if (value != null) {
|
||||||
|
|
||||||
|
overrides.architectures.push (value);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
} catch (e:Dynamic) {}
|
||||||
|
|
||||||
} else if (argument == "-64") {
|
} else if (argument == "-64") {
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user