Skip to content

Commit

Permalink
Update HUGO_ARCH for arm-linux-gnueabihf target
Browse files Browse the repository at this point in the history
  • Loading branch information
agriyakhetarpal committed Apr 29, 2024
1 parent 5c7664c commit d5d4f5a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
"x86": "386",
"s390x": "s390x",
"ppc64le": "ppc64le",
"armv7l": "arm",
}[platform.machine()]

# Name of the Hugo binary that will be built
Expand Down Expand Up @@ -133,6 +134,9 @@ def run(self):
os.environ["GOARCH"] = os.environ.get("GOARCH", self.hugo_arch)
# i.e., allow override if GOARCH is set!

if os.environ.get("GOARCH") == "arm" and os.environ.get("GOOS") == "linux":
os.environ["GOARM"] = os.environ.get("GOARM", "7")

# Build Hugo from source using the Go toolchain, place it into GOBIN
# Requires the following dependencies:
#
Expand Down

0 comments on commit d5d4f5a

Please sign in to comment.