소스 검색

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 5 년 전
부모
커밋
d16d554d6b
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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')
             copy_file(mono_bin_path, '#bin', mono_dll_name + '.dll')
     else:
     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'
         sharedlib_ext = '.dylib' if is_apple else '.so'