File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 {
You can’t perform that action at this time.
0 commit comments