Ignore system environment variables with the same name as common targets.

If you have a `<section if="cpp">` tag in your project.xml, you don't want it to be active just because a system environment variable happens to be named "cpp". You only want it active if actually targeting C++.
This commit is contained in:
player-03
2024-06-04 23:11:55 -04:00
committed by GitHub
parent 1b8d7ac7fa
commit 7a25f656d0

View File

@@ -184,6 +184,10 @@ class HXProject extends Script
else
{
environment = Sys.environment();
for (conflict in ["air", "android", "cpp", "flash", "hl", "html5", "ios", "linux", "mac", "neko", "webassembly", "windows"])
{
environment.remove(conflict);
}
}
haxedefs = new Map<String, Dynamic>();