Skip to content

Commit

Permalink
disable Go compiler optimization for riscv64 (#2035)
Browse files Browse the repository at this point in the history
  • Loading branch information
piggynl authored Mar 3, 2022
1 parent 7835274 commit e0f9d7d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ GO_FLAGS += "-ldflags=-s -w"
# Avoid embedding the build path in the executable for more reproducible builds
GO_FLAGS += -trimpath

# Temporary workaround for golang/go#51101 before Go 1.18/1.17.8 is released
ifeq ($(GOARCH), riscv64)
GO_FLAGS += "-gcflags=all=-N -l"
endif

esbuild: cmd/esbuild/version.go cmd/esbuild/*.go pkg/*/*.go internal/*/*.go go.mod
CGO_ENABLED=0 go build $(GO_FLAGS) ./cmd/esbuild

Expand Down

0 comments on commit e0f9d7d

Please sign in to comment.