Browse Source

build: config: compiler: add march for riscv64

This is to avoid building with vector extension
architecture.

Upstream status: Inappropriate

Signed-off-by: Rebecca Chang Swee Fun <rebecca.chang@starfivetech.com>
Rebecca Chang Swee Fun 1 year ago
parent
commit
d96b8603ec
1 changed files with 1 additions and 0 deletions
  1. 1 0
      build/config/compiler/BUILD.gn

+ 1 - 0
build/config/compiler/BUILD.gn

@@ -1159,6 +1159,7 @@ config("compiler_cpu_abi") {
       if (is_clang) {
         cflags += [
           "--target=riscv64-linux-gnu",
+          "-march=rv64gc",
           "-mno-relax",
         ]
         ldflags += [