Skip to content

Commit

Permalink
Build: Add zicsr extension to all cpu when compiled with nuclei_llvm
Browse files Browse the repository at this point in the history
Signed-off-by: Huaqi Fang <[email protected]>
  • Loading branch information
fanghuaqi committed Oct 15, 2024
1 parent 9932b61 commit bfd8e28
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Build/toolchain/nuclei_llvm.mk
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ endif
COMMON_FLAGS += -march=$(RISCV_ARCH) -mabi=$(RISCV_ABI) -mcmodel=$(RISCV_CMODEL)
# Enable some experimental extension for llvm clang
COMMON_FLAGS += -menable-experimental-extensions
# Add zicsr extension to clang, since our cpu always has zicsr extension
COMMON_FLAGS += -Xclang -target-feature -Xclang +zicsr
## Append mtune options when RISCV_TUNE is defined
## It might be defined in SoC/<SOC>/build.mk, and can be overwritten by make
ifneq ($(RISCV_TUNE),)
Expand Down

0 comments on commit bfd8e28

Please sign in to comment.