Set defualt riscv32 linux abi to abi_riscv_ipl32

This commit is contained in:
Pierre Muller 2023-06-13 19:39:55 +00:00
parent 61e53fd42a
commit 0d256f517f

View File

@ -245,7 +245,15 @@ unit agrvgas;
result := inherited MakeCmdLine;
Replace(result,'$ARCH',arch_str[current_settings.fputype=fpu_fd,current_settings.cputype]);
{$ifdef RISCV32}
Replace(result,'$ABI','ilp32');
case target_info.abi of
abi_riscv_ilp32:
Replace(result,'$ABI','ilp32');
abi_riscv_ilp32f:
Replace(result,'$ABI','ilp32f');
abi_riscv_hf,
abi_riscv_ilp32d:
Replace(result,'$ABI','ilp32d');
end;
{$endif RISCV32}
{$ifdef RISCV64}
if target_info.abi=abi_riscv_hf then