-
-
Notifications
You must be signed in to change notification settings - Fork 33
Open
Description
I'm working on integrating a riscv32 toolchain so I can use bazel-embedded as the compiler configuration for the OpenTitan project (https://opentitan.org). It appears there are some incompatible flags between ARM and riscv32 gcc compilers.
Experimentally, I'm handling these flag differences with if statements in toolchains/features/common/impl/gcc.bzl and toolchains/features/embedded/impl/gcc.bzl. This seems ugly to me and that it would be more appropriate to elevate some of the compiler flag selections to the platform or device configurations in platforms/BUILD and/or devices/riscv32/riscv32.bzl. (See lowRISC#1)
I'm creating this issue to solicit feedback on the best approach.
Metadata
Metadata
Assignees
Labels
No labels