Skip to content

Commit

Permalink
✍️ Change BUILDING_FOR_WINDOWS -> BUILD_STATIC
Browse files Browse the repository at this point in the history
  • Loading branch information
arjxn-py committed Jun 7, 2024
1 parent 227652f commit d33a667
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,11 +196,11 @@ 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.
BUILDING_FOR_WINDOWS = (
BUILD_STATIC = (
os.environ.get("GOOS") == "windows" or sys.platform == "win32"
)

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

if not (Path(HUGO_CACHE_DIR).resolve() / f"hugo-{HUGO_VERSION}").exists():
Expand Down

0 comments on commit d33a667

Please sign in to comment.