From 5905e7cc6f9170a592299c06ab46f885c1bd5144 Mon Sep 17 00:00:00 2001 From: Josh Tynjala Date: Wed, 4 Dec 2024 08:48:25 -0800 Subject: [PATCH] CPPHelper: warn when rebuild command cannot find C++ project source files Typically, you can't run rebuild with Haxelib releases and need to check out from Git --- src/lime/tools/CPPHelper.hx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/lime/tools/CPPHelper.hx b/src/lime/tools/CPPHelper.hx index 2fcf06639b..e2877c9205 100644 --- a/src/lime/tools/CPPHelper.hx +++ b/src/lime/tools/CPPHelper.hx @@ -201,8 +201,14 @@ class CPPHelper path = project.config.get("project.rebuild.path"); } - if (path == null || !FileSystem.exists(path)) + if (path == null) + { + return; + } + + if (!FileSystem.exists(path)) { + Log.warn("Skipping rebuild. Path not found: " + path + "\nIf you are using a release from Haxelib, source code for native binaries may not be bundled. To rebuild, you may need to check out the full repository."); return; } @@ -215,6 +221,7 @@ class CPPHelper if (!FileSystem.exists(Path.combine(path, buildFile))) { + Log.warn("Skipping rebuild. Path not found: " + path + "\nIf you are using a release from Haxelib, source code for native binaries may not be bundled. To rebuild, you may need to check out the full repository."); return; }