Browse Source

Mono: Fix detection of Apple platforms in build script

Rémi Verschelde 5 years ago
parent
commit
5b040ef2e8
1 changed files with 1 additions and 1 deletions
  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'