Skip to content

Commit

Permalink
Determine host architecture without using docker (#1834)
Browse files Browse the repository at this point in the history
  • Loading branch information
Molter73 authored Sep 11, 2024
1 parent 88fb9ee commit 221290b
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions Makefile-constants.mk
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,7 @@ ifeq ($(COLLECTOR_TAG),)
COLLECTOR_TAG=$(shell git describe --tags --abbrev=10 --dirty)
endif

DOCKER_CLI := $(shell command -v docker 2>/dev/null)

ifeq ($(DOCKER_CLI),)
$(error "docker is required for building")
endif

HOST_ARCH := $(shell docker system info --format '{{.Architecture}}')
HOST_ARCH := $(shell uname -m | sed -e 's/x86_64/amd64/' -e 's/aarch64/arm64/')
PLATFORM ?= "linux/$(HOST_ARCH)"

USE_VALGRIND ?= false
Expand Down

0 comments on commit 221290b

Please sign in to comment.