Revert "feat: add boringcrypto builds for linux (#9528)" (#9529)

This reverts commit 79cd6047dc.
This commit is contained in:
Kyle Carberry
2023-09-05 08:37:07 -05:00
committed by GitHub
parent 79cd6047dc
commit da0ef92f77
7 changed files with 14 additions and 61 deletions
-9
View File
@@ -105,9 +105,6 @@ CODER_ARCH_IMAGE_PREREQUISITES := \
build/coder_$(VERSION)_%.tar.gz
endif
# used to decide if we can build with boringcrypto
local_os:=$(shell go env GOHOSTOS)
local_arch:=$(shell go env GOHOSTARCH)
clean:
rm -rf build site/out
@@ -225,12 +222,6 @@ $(CODER_ALL_BINARIES): go.mod go.sum \
build_args+=(--slim)
fi
# boringcrypto is only supported on Linux
# boringcrypto uses CGO, which isn't supported when cross compiling architectures
if [[ "$$os" == "linux" ]] && [[ "${local_os}" == "linux" ]] && [[ "$$arch" == "${local_arch}" ]]; then
build_args+=(--boringcrypto)
fi
./scripts/build_go.sh "$${build_args[@]}"
if [[ "$$mode" == "slim" ]]; then