diff --git a/tools/hxcpp/PathManager.hx b/tools/hxcpp/PathManager.hx index 15b83c7e7..3872bd30b 100644 --- a/tools/hxcpp/PathManager.hx +++ b/tools/hxcpp/PathManager.hx @@ -111,8 +111,8 @@ class PathManager catch (e:Dynamic) {} Log.verbose = cache; - - var lines = output.split("\n"); + + var lines = ~/\r?\n/g.split(output); var result = ""; var re = new EReg("^-D " + haxelib + "(=.*)?$", ""); //matches "-D hxcpp=3.1.0" or "-D hxcpp", but not "-D hxcpp-extras" for (i in 1...lines.length)