Skip to content

Commit

Permalink
Disable JIT for emscripten. Add a better message for when isDirectory…
Browse files Browse the repository at this point in the history
… fails.
  • Loading branch information
Hugh Sanderson committed Sep 16, 2024
1 parent 08f88ff commit 61f3911
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions toolchain/finish-setup.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
<set name="NOCONSOLE" value="${NEEDS_NC}" if="no_console"/>
<set name="RPI" value="-rpi" if="rpi"/>
<set name="APIFP" value="-hfp" if="hardfp"/>
<set name="CPPIA_NO_JIT" value="1" if="emscripten"/>

<set name="STD_MODULE_LINK" value="dll"/>

Expand Down
2 changes: 2 additions & 0 deletions tools/hxcpp/BuildTool.hx
Original file line number Diff line number Diff line change
Expand Up @@ -2418,6 +2418,8 @@ class BuildTool
path = path.split("\\").join("/");
var filename = "";
var parts = path.split("/");
if (!FileSystem.exists(path))
Log.error("File does not exist:" + path);
if (!FileSystem.isDirectory(path))
filename = parts.pop();

Expand Down

0 comments on commit 61f3911

Please sign in to comment.