Skip to content

Commit 42e201a

Browse files
committed
Don't copy AIR descriptors for platforms the current OS can't target
1 parent 3561665 commit 42e201a

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

src/ASConfigC.as

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -688,6 +688,24 @@ package
688688
var index:int = 0;
689689
for(var platformID:String in application)
690690
{
691+
if (AIRPlatformType.WINDOWS === platformID
692+
&& process.platform !== "win32") {
693+
// AIR can't compile for Windows from macOS or
694+
// Linux, so we can skip this one
695+
continue;
696+
}
697+
if (AIRPlatformType.MAC === platformID
698+
&& process.platform !== "darwin") {
699+
// AIR can't compile for macOS from Windows or
700+
// Linux, so we can skip this one
701+
continue;
702+
}
703+
if (AIRPlatformType.LINUX === platformID
704+
&& process.platform !== "linux") {
705+
// AIR can't compile for Linux from Windows or
706+
// macOS, so we can skip this one
707+
continue;
708+
}
691709
this._airDescriptors[index] = application[platformID];
692710
index++;
693711
}

0 commit comments

Comments
 (0)