Browse Source

Merge pull request #587 from Faless/fix/osx_names

Rémi Verschelde 3 years ago
parent
commit
654836a135
1 changed files with 5 additions and 2 deletions
  1. 5 2
      SConstruct

+ 5 - 2
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(