Skip to content

Commit

Permalink
Fix: Symbol not found: ___chkstk_darwin
Browse files Browse the repository at this point in the history
Disable stack checking on MacOS to resolve this error.
  • Loading branch information
OmarEmaraDev committed Nov 23, 2023
1 parent 44aae78 commit 060b425
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions _setuputils/compilation.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 060b425

Please sign in to comment.