Fix #4317 - 64-bit RISC-V cc flags wrongly applying to 32-bit RISC-V too (#4318)

This commit is contained in:
Martin Kinkelin 2023-02-10 04:08:48 +01:00 committed by GitHub
parent 5f46c65ab5
commit ac4aa4dc43
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -121,8 +121,10 @@ void appendTargetArgsForGcc(std::vector<std::string> &args) {
return;
case Triple::riscv64:
if (triple.isArch64Bit()) {
args.push_back("-march=rv64gc");
args.push_back("-mabi=lp64d");
}
return;
default: