From 397fa11aaaa408ffe04ee293fabbccf4438dbcbf Mon Sep 17 00:00:00 2001 From: Irmen de Jong Date: Thu, 18 Jul 2024 20:25:33 +0200 Subject: [PATCH] fix platform detection --- build_ffi_module.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build_ffi_module.py b/build_ffi_module.py index 5199a16..057662c 100644 --- a/build_ffi_module.py +++ b/build_ffi_module.py @@ -10,6 +10,7 @@ """ import os +import sys import subprocess import shlex from cffi import FFI @@ -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'