Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions tools/hxcpp/Compiler.hx
Original file line number Diff line number Diff line change
Expand Up @@ -694,8 +694,7 @@ class Compiler
{
mPCH = inPCH;
createCompilerVersion();
final regex = ~/clang/i;
if (inPCH != null && regex.match(mCompilerVersionString)) {
if (inPCH != null && ~/clang/i.match(mCompilerVersionString)) {
mPCH = "clang";
}
switch (mPCH) {
Expand Down
4 changes: 2 additions & 2 deletions tools/hxcpp/Setup.hx
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ class Setup
try
{
var lines = ProcessManager.readStdout(wasmOptExe, ["--version"]);
if (lines?.length>0)
if (lines.length>0)
{
Log.v('Found $wasmOptExe in PATH ${lines[0]}');
ioDefines.set("HXCPP_WASM_OPT", wasmOptExe);
Expand Down Expand Up @@ -623,7 +623,7 @@ class Setup

var minPlatform:Null<Int> = try {
haxe.Json.parse(sys.io.File.getContent(platformsJson)).min;
} catch (e) {
} catch (e:Dynamic) {
Log.warn("Unable to determine minimum supported Android platform: " + e.toString());
null;
};
Expand Down
7 changes: 6 additions & 1 deletion tools/run/RunMain.hx
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
import sys.FileSystem;
#if haxe4
import sys.thread.Thread;
#elseif neko
import neko.vm.Thread;
#end

class RunMain
{
Expand Down Expand Up @@ -26,7 +31,7 @@ class RunMain
log(" haxe compile.hxml");

var gotUserResponse = false;
sys.thread.Thread.create(function() {
Thread.create(function() {
Sys.sleep(30);
if (!gotUserResponse)
{
Expand Down
Loading