summaryrefslogtreecommitdiffstats
path: root/SConstruct
diff options
context:
space:
mode:
authorFabio Alessandrelli <fabio.alessandrelli@gmail.com>2021-07-10 18:47:13 +0200
committerFabio Alessandrelli <fabio.alessandrelli@gmail.com>2021-07-10 19:02:52 +0200
commit1db7630d01aefca65f1a039bdf0dc852d1f0c32f (patch)
treefe3f2a596e08839ae3d8a39e34649b9f992e12cf /SConstruct
parente08ecdc28c5409cb5366027227e996c342dcee93 (diff)
downloadredot-cpp-1db7630d01aefca65f1a039bdf0dc852d1f0c32f.tar.gz
Fix OSX library name for arm64.
Was always `.64`, it's now `.arm64` for M1.
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct7
1 files changed, 5 insertions, 2 deletions
diff --git a/SConstruct b/SConstruct
index 1f06a0a..77c7001 100644
--- a/SConstruct
+++ b/SConstruct
@@ -465,9 +465,12 @@ add_sources(sources, 'src/gen', 'cpp')
arch_suffix = env['bits']
if env['platform'] == 'android':
arch_suffix = env['android_arch']
-if env['platform'] == 'ios':
+elif env['platform'] == 'ios':
arch_suffix = env['ios_arch']
-if env['platform'] == 'javascript':
+elif env['platform'] == 'osx':
+ if env['macos_arch'] != 'x86_64':
+ arch_suffix = env['macos_arch']
+elif env['platform'] == 'javascript':
arch_suffix = 'wasm'
library = env.StaticLibrary(