Similar to ports r531783 but for libclang.
Created attachment 213994 [details]
Comment on attachment 213994 [details]
> ++ if (TT.getOSMajorVersion() == 0 || TT.getOSMajorVersion() >= 13)
Alternatively, target ELF version can be derived from host (on powerpc64) via _CALL_ELF predefined macro.
LGTM, feel free to commit or I'll get around it eventually