From 1db7630d01aefca65f1a039bdf0dc852d1f0c32f Mon Sep 17 00:00:00 2001 From: Fabio Alessandrelli Date: Sat, 10 Jul 2021 18:47:13 +0200 Subject: [PATCH] Fix OSX library name for arm64. Was always `.64`, it's now `.arm64` for M1. --- SConstruct | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/SConstruct b/SConstruct index 1f06a0a94..77c7001ac 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(