Explorar el Código

Merge pull request #36807 from akien-mga/dont-give-apples-to-the-monkeys

Mono: Fix detection of Apple platforms in build script
Rémi Verschelde hace 5 años
padre
commit
d16d554d6b
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      modules/mono/build_scripts/mono_configure.py

+ 1 - 1
modules/mono/build_scripts/mono_configure.py

@@ -163,7 +163,7 @@ def configure(env, env_mono):
 
             copy_file(mono_bin_path, '#bin', mono_dll_name + '.dll')
     else:
-        is_apple = (sys.platform == 'darwin' or "osxcross" in env)
+        is_apple = env['platform'] in ['osx', 'iphone']
 
         sharedlib_ext = '.dylib' if is_apple else '.so'