Skip to content

Commit 0ec95c8

Browse files
committed
Refine Makefile on error handling for ARM32 architecture detection
With the original Makefile, the host without "arch" in PATH gets "make: arch: No such file or directory" printed everytime while making, regardless which target is choosed. The "2>/dev/null" is added for suppressing the error message.
1 parent 43dda26 commit 0ec95c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mk/common.mk

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ else
55
PRINTF = env printf
66
endif
77

8-
HOST_ARCH = $(shell arch)
8+
HOST_ARCH = $(shell arch 2>/dev/null)
99

1010
# Control the build verbosity
1111
ifeq ("$(VERBOSE)","1")

0 commit comments

Comments
 (0)