Skip to content

Commit

Permalink
馃 Automated fixes from https://pre-commit.ci
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Jun 9, 2024
1 parent 91d54b7 commit a96ac21
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,9 @@ def run(self):

# Build a static binary on Windows to avoid missing DLLs from MinGW,
# i.e., libgcc_s_seh-1.dll, libstdc++-6.dll, etc.
BUILD_STATIC = "linux-musl" in os.environ.get("CC", "") or "linux-musl" in os.environ.get("CXX", "")
BUILD_STATIC = "linux-musl" in os.environ.get(
"CC", ""
) or "linux-musl" in os.environ.get("CXX", "")

if BUILD_STATIC:
ldflags.append("-extldflags '-static'")
Expand Down

0 comments on commit a96ac21

Please sign in to comment.