Skip to content

Commit 4851c32

Browse files
committed
Revert "Build with v2 extensions" / GOAMD64=v2
As seen in #908, there are users still running x86-64-v1 cpus. They get This program can only be run on AMD64 processors with v2 microarchitecture support. and cannot read their encrypted files. Build for AMD64v1 again an accept the XChaCha20 performance hit for for some cpus ( golang/go#67240 ). This reverts commit f5007b2. Related: #828 #833 apptainer/apptainer#2873 golang/go#67240
1 parent 6d513c1 commit 4851c32

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

build.bash

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,6 @@ if [[ -n ${LDFLAGS:-} ]] ; then
8585
GO_LDFLAGS="$GO_LDFLAGS \"-extldflags=$LDFLAGS\""
8686
fi
8787

88-
# Set GOAMD64 version to v2
89-
export GOAMD64=v2
90-
9188
# Actual "go build" call for gocryptfs
9289
go build "-ldflags=$GO_LDFLAGS" "$@"
9390
# Additional binaries

0 commit comments

Comments
 (0)