Skip to content

Commit

Permalink
refactor: use filter for logical OR
Browse files Browse the repository at this point in the history
can use filter function to simulate a logical OR with ifneq.
  • Loading branch information
davidgaspardev committed Jan 16, 2023
1 parent d5ba1ea commit f6c7615
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,7 @@ else
ifeq ($(shell uname -m),armv7l)
HOST_ARCH = armv7hf
endif
ifeq ($(shell uname -m),aarch64)
HOST_ARCH = aarch64
endif
ifeq ($(shell uname -m),armv8)
HOST_ARCH = aarch64
endif
ifeq ($(shell uname -m),arm64)
ifneq (,$(filter aarch64 armv8 arm64, $(shell uname -m)))
HOST_ARCH = aarch64
endif
endif
Expand Down

0 comments on commit f6c7615

Please sign in to comment.