Synchronize environment variables from HXP projects

This commit is contained in:
Joshua Granick
2017-08-18 14:16:05 -07:00
parent 6103a0a34f
commit ae39a4fe82

View File

@@ -570,6 +570,12 @@ class HXProject {
if (project != null) {
for (key in project.environment.keys ()) {
Sys.putEnv (key, project.environment[key]);
}
var defines = StringMapHelper.copy (userDefines);
StringMapHelper.copyKeys (project.defines, defines);
@@ -951,7 +957,12 @@ class HXProject {
public function setenv (name:String, value:String):Void {
if (value == null) value = "";
if (value == null) {
environment.remove (name);
value = "";
}
if (name == "HAXELIB_PATH") {
@@ -981,6 +992,12 @@ class HXProject {
}
if (value != "") {
environment.set (name, value);
}
}