From 48334337b8131e7e51bbdb7213fb72cf8eee89a9 Mon Sep 17 00:00:00 2001 From: Joshua Granick Date: Mon, 28 Dec 2015 18:23:46 -0800 Subject: [PATCH] Help improve support for builds with no --- tools/CommandLineTools.hx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/CommandLineTools.hx b/tools/CommandLineTools.hx index 860b2c2e6..38efaffb3 100644 --- a/tools/CommandLineTools.hx +++ b/tools/CommandLineTools.hx @@ -1299,7 +1299,7 @@ class CommandLineTools { } - if (project == null || (command != "rebuild" && project.sources.length == 0)) { + if (project == null || (command != "rebuild" && project.sources.length == 0 && !FileSystem.exists (project.app.main + ".hx"))) { LogHelper.error ("You must have a \"project.xml\" file or specify another valid project file when using the '" + command + "' command"); return null;