diff --git a/cc/config/riscv64_device.go b/cc/config/riscv64_device.go index a63d5c237..d66697c6b 100644 --- a/cc/config/riscv64_device.go +++ b/cc/config/riscv64_device.go @@ -29,12 +29,14 @@ var ( // A temporary fix for SExtWRemoval miscompilation bug. "-mllvm", "-riscv-disable-sextw-removal=true", + "-march=rv64gc_zbb", } riscv64ArchVariantCflags = map[string][]string{} riscv64Ldflags = []string{ "-Wl,--hash-style=gnu", + "-march=rv64gc_zbb", } riscv64Lldflags = append(riscv64Ldflags,