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
This commit is contained in:
Josh Tynjala
2024-12-04 08:48:25 -08:00
parent 5db8f1de4e
commit 5905e7cc6f

View File

@@ -201,11 +201,17 @@ class CPPHelper
path = project.config.get("project.rebuild.path"); path = project.config.get("project.rebuild.path");
} }
if (path == null || !FileSystem.exists(path)) if (path == null)
{ {
return; 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;
}
if (buildFile == null && project.config.exists("project.rebuild.file")) if (buildFile == null && project.config.exists("project.rebuild.file"))
{ {
buildFile = project.config.get("project.rebuild.file"); buildFile = project.config.get("project.rebuild.file");
@@ -215,6 +221,7 @@ class CPPHelper
if (!FileSystem.exists(Path.combine(path, buildFile))) 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; return;
} }