Skip to content

Commit 988d618

Browse files
committed
Alter
1 parent fdd157a commit 988d618

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@ override CXX = g++
77
endif
88

99
ifndef CROSS_COMPILE
10-
processor := $(shell uname -m)
10+
uname_result := $(shell uname -m)
11+
ifeq ($(uname_result),$(filter $(uname_result),riscv64))
12+
processor = rv64
13+
endif
1114
else # CROSS_COMPILE was set
1215
CC = $(CROSS_COMPILE)gcc
1316
CXX = $(CROSS_COMPILE)g++

0 commit comments

Comments
 (0)