From 61f3911525d7717cf6a5f4f3c46fe02a68734000 Mon Sep 17 00:00:00 2001 From: Hugh Sanderson Date: Mon, 16 Sep 2024 16:53:10 +0800 Subject: [PATCH] Disable JIT for emscripten. Add a better message for when isDirectory fails. --- toolchain/finish-setup.xml | 1 + tools/hxcpp/BuildTool.hx | 2 ++ 2 files changed, 3 insertions(+) diff --git a/toolchain/finish-setup.xml b/toolchain/finish-setup.xml index 0b6aefc9e..eef2be1ec 100644 --- a/toolchain/finish-setup.xml +++ b/toolchain/finish-setup.xml @@ -10,6 +10,7 @@ + diff --git a/tools/hxcpp/BuildTool.hx b/tools/hxcpp/BuildTool.hx index 22f85d898..8e20a1469 100644 --- a/tools/hxcpp/BuildTool.hx +++ b/tools/hxcpp/BuildTool.hx @@ -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();