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 authored and dfunckt committed Jul 12, 2023
1 parent cc037d2 commit 4d21eb7
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 4d21eb7

Please sign in to comment.