Skip to content

Commit

Permalink
[RISCV] Align default march string with GCC
Browse files Browse the repository at this point in the history
Signed-off-by: max.ma <[email protected]>
  • Loading branch information
max-starfive committed Jun 24, 2024
1 parent bb7bc0c commit 7433bfc
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions clang/lib/Driver/ToolChains/Arch/RISCV.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -317,12 +317,7 @@ StringRef riscv::getRISCVArch(const llvm::opt::ArgList &Args,
else
return "rv32imafdc";
} else {
if (Triple.getOS() == llvm::Triple::UnknownOS)
return "rv64imac";
else if (Triple.isAndroid())
return "rv64imafdcv_zba_zbb_zbs";
else
return "rv64imafdc";
return "rv64imafdc_zba_zbb_zbc_zbs";
}
}

Expand Down

0 comments on commit 7433bfc

Please sign in to comment.