Add support for 'macos' in addition to 'mac' as a target name

This commit is contained in:
Joshua Granick
2016-08-25 15:10:20 -07:00
parent 496708cb74
commit 63fff23fb1

View File

@@ -246,6 +246,10 @@ class CommandLineTools {
target = Platform.TVOS; target = Platform.TVOS;
targetFlags.set ("simulator", ""); targetFlags.set ("simulator", "");
case "mac", "macos":
target = Platform.MAC;
default: default:
target = cast targetName.toLowerCase (); target = cast targetName.toLowerCase ();
@@ -1206,6 +1210,11 @@ class CommandLineTools {
target = Platform.FIREFOX; target = Platform.FIREFOX;
overrides.haxedefs.set ("firefoxos", ""); overrides.haxedefs.set ("firefoxos", "");
case "mac", "macos":
target = Platform.MAC;
overrides.haxedefs.set ("macos", "");
default: default:
target = cast targetName.toLowerCase (); target = cast targetName.toLowerCase ();