summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2020-03-05 09:00:41 +0100
committerRémi Verschelde <rverschelde@gmail.com>2020-03-05 09:00:41 +0100
commit5b040ef2e832ea730d1e3d7755b36386a053fd4c (patch)
tree2cb273af02af0bfedb1b0b2b3c2b64bbe9e7643d
parentfbaa55a8db90ab7643718b4004b7760517942e3f (diff)
Mono: Fix detection of Apple platforms in build script
-rw-r--r--modules/mono/build_scripts/mono_configure.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/mono/build_scripts/mono_configure.py b/modules/mono/build_scripts/mono_configure.py
index 033c467da9..9a6198f13a 100644
--- a/modules/mono/build_scripts/mono_configure.py
+++ b/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'