Skip to content

Commit

Permalink
fix platform detection
Browse files Browse the repository at this point in the history
  • Loading branch information
irmen committed Jul 18, 2024
1 parent fcafb53 commit 397fa11
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build_ffi_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"""

import os
import sys
import subprocess
import shlex
from cffi import FFI
Expand Down Expand Up @@ -873,7 +874,7 @@ def check_linker_need_libatomic():
("MA_NO_NODE_GRAPH", "1"), # high level api
("MA_NO_ENGINE", "1") # high level api
]
if os.uname().sysname == "Darwin":
if sys.platform == "darwin":
__macros.insert(0,("MA_NO_RUNTIME_LINKING", None))
__link_args=[
'-Wl,-needed_framework,AudioToolbox'
Expand Down

0 comments on commit 397fa11

Please sign in to comment.