[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:
Travis Geiselbrecht
2025-10-05 13:54:11 -07:00
parent 48d331f144
commit e0b5008641
3 changed files with 10 additions and 0 deletions

View File

@@ -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