Browse Source

makepanda: Don't disable Cg/FMODEx on macOS without arch flags

Fixes #1119
rdb 4 years ago
parent
commit
f84111a693
1 changed files with 1 additions and 1 deletions
  1. 1 1
      makepanda/makepanda.py

+ 1 - 1
makepanda/makepanda.py

@@ -934,7 +934,7 @@ if (COMPILER=="GCC"):
         PkgDisable("CARBON")
         PkgDisable("CARBON")
 
 
     if GetTarget() == 'darwin':
     if GetTarget() == 'darwin':
-        if 'x86_64' not in OSX_ARCHS and 'i386' not in OSX_ARCHS:
+        if OSX_ARCHS and 'x86_64' not in OSX_ARCHS and 'i386' not in OSX_ARCHS:
             # These support only these archs, so don't build them if we're not
             # These support only these archs, so don't build them if we're not
             # targeting any of the supported archs.
             # targeting any of the supported archs.
             PkgDisable("FMODEX")
             PkgDisable("FMODEX")