From 060b4255865d296d62d0b6a4f7dcc10072b67427 Mon Sep 17 00:00:00 2001 From: OmarEmaraDev Date: Thu, 23 Nov 2023 07:41:37 +0200 Subject: [PATCH] Fix: Symbol not found: ___chkstk_darwin Disable stack checking on MacOS to resolve this error. --- _setuputils/compilation.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/_setuputils/compilation.py b/_setuputils/compilation.py index abe08af55..cf1ce18e6 100644 --- a/_setuputils/compilation.py +++ b/_setuputils/compilation.py @@ -76,6 +76,9 @@ def getExtensionFromPath(path, addonDirectory, includeDirs = []): "depends" : [] } + if onMacOS: + kwargs["extra_compile_args"].append("-fno-stack-check") + for key, values in getExtensionArgsFromSetupOptions(getSetupOptions(path)).items(): kwargs[key].extend(values)