================
@@ -1547,6 +1547,9 @@ class TargetInfo : public TransferrableTargetInfo,
       return true;
     if (getTriple().getArch() == llvm::Triple::ArchType::avr)
       return true;
+    if (getTriple().isOSAIX())
+      return getTriple().getOSMajorVersion() == 0 ||
----------------
w2yehia wrote:

`getTriple().getOSMajorVersion() == 0` occurs if the user manually passes a 
triple without an OS version, i.e. `--target=powerpc64-ibm-aix-xcoff`.
By default, the compiler computes the first two digits of the four-digit AIX OS 
version and passes it in the triple, e.g. `-cc1 -triple 
powerpc64-ibm-aix7.2.0.0`. We are not able to get more accurate (the last two 
digits) version info at runtime.

https://github.com/llvm/llvm-project/pull/153049
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to