From 7a25f656d093e5dcdc33dbb679a1ec726b44c89f Mon Sep 17 00:00:00 2001 From: player-03 Date: Tue, 4 Jun 2024 23:11:55 -0400 Subject: [PATCH] Ignore system environment variables with the same name as common targets. If you have a `
` 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++. --- src/lime/tools/HXProject.hx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lime/tools/HXProject.hx b/src/lime/tools/HXProject.hx index f8a17c4ca..62fe5700d 100644 --- a/src/lime/tools/HXProject.hx +++ b/src/lime/tools/HXProject.hx @@ -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();