소스 검색

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 년 전
부모
커밋
d96b8603ec
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  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 += [