Skip to content

Commit

Permalink
Add extra_compile_args for macOS only
Browse files Browse the repository at this point in the history
  • Loading branch information
perklet committed Sep 13, 2023
1 parent 640d552 commit 41f6357
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions curl_cffi/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
library_dirs=[
"/Users/runner/work/_temp/install/lib"
if uname.system == "Darwin" and uname.machine == "x86_64"
else "./lib" if uname.system == "Windows"
else "./lib"
if uname.system == "Windows"
else "/usr/local/lib" # Linux and macOS arm64
],
source_extension=".c",
Expand All @@ -28,7 +29,9 @@
sources=[
os.path.join(os.path.dirname(__file__), "ffi/shim.c"),
],
extra_compile_args=["-Wno-implicit-function-declaration"],
extra_compile_args=(
["-Wno-implicit-function-declaration"] if uname.system == "Darwin" else []
),
# extra_link_args=["-Wl,-rpath,$ORIGIN/../libcurl/" + arch],
)

Expand Down

0 comments on commit 41f6357

Please sign in to comment.