Skip to content

Commit

Permalink
CPPHelper: warn when rebuild command cannot find C++ project source f…
Browse files Browse the repository at this point in the history
…iles

Typically, you can't run rebuild with Haxelib releases and need to check out from Git
  • Loading branch information
joshtynjala committed Dec 4, 2024
1 parent 5db8f1d commit 5905e7c
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/lime/tools/CPPHelper.hx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand All @@ -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;
}

Expand Down

0 comments on commit 5905e7c

Please sign in to comment.