Skip to content

Commit 2e856bd

Browse files
committed
Include extraParams.hxml even when library path overridden.
1 parent 2032404 commit 2e856bd

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

src/lime/tools/HXProject.hx

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1241,7 +1241,7 @@ class HXProject extends Script
12411241
{
12421242
var path = Haxelib.pathOverrides.get(name);
12431243
var jsonPath = Path.combine(path, "haxelib.json");
1244-
var added = false;
1244+
var extraParamsPath = Path.combine(path, "extraParams.hxml");
12451245

12461246
try
12471247
{
@@ -1262,6 +1262,18 @@ class HXProject extends Script
12621262
var param = "-cp " + path;
12631263
compilerFlags.remove(param);
12641264
compilerFlags.push(param);
1265+
1266+
try
1267+
{
1268+
if (FileSystem.exists(extraParamsPath))
1269+
{
1270+
var extraParams = Lambda.filter(File.getContent(extraParamsPath).split("\n"),
1271+
function(param:String) return param.length > 0 && param.charCodeAt(0) != "#".code);
1272+
1273+
compilerFlags = ArrayTools.concatUnique(compilerFlags, extraParams);
1274+
}
1275+
}
1276+
catch (e:Dynamic) {}
12651277
}
12661278
else
12671279
{

0 commit comments

Comments
 (0)