[riscv][toolchain] fix clang test of -misa switch which is not present
The test inside riscv/rules.mk was assuming gcc and that the CC variable isn't passed in from the user. This is not a very clean solution and acts like a bandaid over the problem. Added some todos for a potential solution.
This commit is contained in:
@@ -202,6 +202,10 @@ $(info TOOLCHAIN_PREFIX = $(TOOLCHAIN_PREFIX))
|
||||
list-toolchain:
|
||||
else
|
||||
|
||||
# TODO: rethink how this works and perhaps have the arch rules.mk set up CC, OBJCOPY, etc
|
||||
# so that they can be a bit more flexible in how they are set up.
|
||||
# Also consider using ARCH_CC, etc to disambiguate between host and target toolchains.
|
||||
|
||||
# default to no ccache
|
||||
CCACHE ?=
|
||||
CC ?= $(CCACHE) $(TOOLCHAIN_PREFIX)gcc
|
||||
|
||||
Reference in New Issue
Block a user