Skip to content

Commit 8686ee2

Browse files
committed
build: Pass the ARCH string to the compiler
1 parent 160ab32 commit 8686ee2

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

Makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,12 @@ else # linux
9696
STRIP = strip --strip-unneeded $@
9797
endif
9898

99+
# For RISC-V pass through the arch string directly to march
100+
ifneq (,$(findstring rv64,$(ARCH)))
101+
LDFLAGS += -march=$(ARCH)
102+
CFLAGS += -march=$(ARCH)
103+
endif
104+
99105
# Windows .def file generation
100106
$(DEF_FILE):
101107
ifeq ($(PLATFORM),windows)

0 commit comments

Comments
 (0)