From e1edb870177a2af6eb0929585373bce53a4da8c8 Mon Sep 17 00:00:00 2001 From: zyy17 Date: Wed, 2 Aug 2023 14:42:43 +0800 Subject: [PATCH] fix: add the missing 'TARGET' in Makefile (#2066) --- Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Makefile b/Makefile index 08651a50ea6e..ab0fe6860bff 100644 --- a/Makefile +++ b/Makefile @@ -2,6 +2,7 @@ CARGO_PROFILE ?= FEATURES ?= TARGET_DIR ?= +TARGET ?= CARGO_BUILD_OPTS := --locked IMAGE_REGISTRY ?= docker.io IMAGE_NAMESPACE ?= greptime @@ -38,6 +39,10 @@ ifneq ($(strip $(TARGET_DIR)),) CARGO_BUILD_OPTS += --target-dir ${TARGET_DIR} endif +ifneq ($(strip $(TARGET)),) + CARGO_BUILD_OPTS += --target ${TARGET} +endif + ifeq ($(BUILDX_MULTI_PLATFORM_BUILD), true) BUILDX_MULTI_PLATFORM_BUILD_OPTS := --platform linux/amd64,linux/arm64 --push else