From 8b6f4c3accde3de183c4954f32db1312f870a91d Mon Sep 17 00:00:00 2001 From: Joshua Granick Date: Thu, 11 Apr 2019 10:29:59 -0700 Subject: [PATCH] Add support for 'hashlink' as target alias --- tools/CommandLineTools.hx | 6 +++--- tools/utils/PlatformSetup.hx | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/CommandLineTools.hx b/tools/CommandLineTools.hx index 7140616a0..13a5d5ddb 100644 --- a/tools/CommandLineTools.hx +++ b/tools/CommandLineTools.hx @@ -239,7 +239,7 @@ class CommandLineTools target = cast System.hostPlatform; targetFlags.set("neko", ""); - case "hl": + case "hl", "hashlink": target = cast System.hostPlatform; targetFlags.set("hl", ""); @@ -886,7 +886,7 @@ class CommandLineTools Log.println(" \x1b[1mnodejs\x1b[0m -- Alias for host platform (using \x1b[1m-nodejs\x1b[0m)"); Log.println(" \x1b[1mjava\x1b[0m -- Alias for host platform (using \x1b[1m-java\x1b[0m)"); Log.println(" \x1b[1mcs\x1b[0m -- Alias for host platform (using \x1b[1m-cs\x1b[0m)"); - Log.println(" \x1b[1mhl\x1b[0m -- Alias for host platform (using \x1b[1m-hl\x1b[0m)"); + Log.println(" \x1b[1mhl/hashlink\x1b[0m -- Alias for host platform (using \x1b[1m-hl\x1b[0m)"); Log.println(" \x1b[1muwp\x1b[0;3m/\x1b[0m\x1b[1mwinjs\x1b[0m -- Alias for \x1b[1mwindows -uwp\x1b[0m"); // Log.println (" \x1b[1miphone\x1b[0;3m/\x1b[0m\x1b[1miphoneos\x1b[0m -- \x1b[1mios\x1b[0m"); // Log.println (" \x1b[1miphonesim\x1b[0m -- Alias for \x1b[1mios -simulator\x1b[0m"); @@ -1461,7 +1461,7 @@ class CommandLineTools target = cast System.hostPlatform; targetFlags.set("neko", ""); - case "hl": + case "hl", "hashlink": target = cast System.hostPlatform; targetFlags.set("hl", ""); diff --git a/tools/utils/PlatformSetup.hx b/tools/utils/PlatformSetup.hx index da4828226..17b0df33a 100644 --- a/tools/utils/PlatformSetup.hx +++ b/tools/utils/PlatformSetup.hx @@ -410,7 +410,7 @@ class PlatformSetup setupWindows(); } - case "neko", "hl", "cs", "uwp", "winjs", "nodejs", "java": + case "neko", "hl", "hashlink", "cs", "uwp", "winjs", "nodejs", "java": Log.println("\x1b[0;3mNo additional configuration is required.\x1b[0m"); case "lime":