This is the name used as part of the llvm rt libraries, like asan (address sanitizer)
@@ -37,6 +37,15 @@ uses
function tripletcpustr(tripletstyle: ttripletstyle): ansistring;
begin
+ if tripletstyle=triplet_llvmrt then
+ begin
+ if (target_info.abi=abi_eabihf) and
+ not(target_info.system in systems_windows) then
+ result='armhf'
+ else
+ result:='arm';
+ exit:
+ end;
result:=lower(cputypestr[current_settings.cputype]);
{ llvm replaces the cpu name with thumb for when generating thumb code}
if (tripletstyle=triplet_llvm) and
@@ -379,7 +379,10 @@ interface
{ platform triplet style }
ttripletstyle = (
- triplet_llvm
+ { llvm toolchain parameters }
+ triplet_llvm,
+ { llvm run time library file names }
+ triplet_llvmrt
{ , triple_gnu }
);
@@ -37,7 +37,14 @@ uses
- if (target_info.system in systems_darwin) or
+ if tripletstyle in [triplet_llvm,triplet_llvmrt] then
+ if target_info.system in systems_android then
+ result:='i686'
+ result:='i386'
+ end
+ else if (target_info.system in systems_darwin) or
(current_settings.cputype<cpu_Pentium2) then
result:='i386'
else