From 7ddc5f609a4a3d64229058ada37935f98f13c8b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Gronowski?= Date: Fri, 19 Dec 2025 14:36:15 +0100 Subject: [PATCH] hack: add nri_no_wasm build tag to static builds MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add the nri_no_wasm build tag to the BUILDFLAGS for static builds to disable WASM plugins support in the NRI (Node Resource Interface) component. See: https://github.com/containerd/nri/blob/1078130fa016884b4c03880d9d587e6691a67d98/README.md#webassembly-support The NRI support is still minimal and disabling WASM plugins shaves off a couple of MiB of the binary size. Signed-off-by: Paweł Gronowski --- hack/make.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hack/make.sh b/hack/make.sh index 275e4651e4..0b8094edd2 100755 --- a/hack/make.sh +++ b/hack/make.sh @@ -88,7 +88,7 @@ if [ -z "$DOCKER_DEBUG" ]; then LDFLAGS='-w' fi -BUILDFLAGS=(${BUILDFLAGS} -tags "netgo osusergo static_build $DOCKER_BUILDTAGS") +BUILDFLAGS=(${BUILDFLAGS} -tags "netgo osusergo static_build nri_no_wasm $DOCKER_BUILDTAGS") LDFLAGS_STATIC="-extldflags -static" if [ "$(uname -s)" = 'FreeBSD' ]; then