mirror of
https://github.com/go-gitea/gitea.git
synced 2025-12-12 19:19:41 +01:00
Makefile: Enable CGO on non-arm
CGO is required for tests that use -race as well as some other build options. On arm64 the build fails when CGO is enabled because of some assembly error.
This commit is contained in:
parent
b49dd8e32f
commit
cc0298d955
7
Makefile
7
Makefile
@ -50,9 +50,10 @@ ifeq ($(HAS_GO), yes)
|
||||
CGO_CFLAGS ?= $(shell $(GO) env CGO_CFLAGS) $(CGO_EXTRA_CFLAGS)
|
||||
endif
|
||||
|
||||
CGO_ENABLED ?= 0
|
||||
ifneq (,$(findstring sqlite,$(TAGS))$(findstring pam,$(TAGS)))
|
||||
CGO_ENABLED = 1
|
||||
ifeq (arm64,$(shell $(GO) env GOARCH))
|
||||
CGO_ENABLED ?= 0
|
||||
else
|
||||
CGO_ENABLED ?= 1
|
||||
endif
|
||||
|
||||
STATIC ?=
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user