Skip to content

Commit 221290b

Browse files
authored
Determine host architecture without using docker (#1834)
1 parent 88fb9ee commit 221290b

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

Makefile-constants.mk

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,7 @@ ifeq ($(COLLECTOR_TAG),)
66
COLLECTOR_TAG=$(shell git describe --tags --abbrev=10 --dirty)
77
endif
88

9-
DOCKER_CLI := $(shell command -v docker 2>/dev/null)
10-
11-
ifeq ($(DOCKER_CLI),)
12-
$(error "docker is required for building")
13-
endif
14-
15-
HOST_ARCH := $(shell docker system info --format '{{.Architecture}}')
9+
HOST_ARCH := $(shell uname -m | sed -e 's/x86_64/amd64/' -e 's/aarch64/arm64/')
1610
PLATFORM ?= "linux/$(HOST_ARCH)"
1711

1812
USE_VALGRIND ?= false

0 commit comments

Comments
 (0)