================
@@ -393,7 +393,9 @@ class LLVM_LIBRARY_VISIBILITY LinuxTargetInfo : public 
OSTargetInfo<Target> {
         // defined for compatibility.
         Builder.defineMacro("__ANDROID_API__", "__ANDROID_MIN_SDK_VERSION__");
       }
-    } else {
+    } else if (Triple.isMlibc()) {
+        Builder.defineMacro("__mlibc__");
+    } else if (Triple.isGNUEnvironment()) {
----------------
lzcunt wrote:

Understood, I'll keep these out of this patch but I'll keep isMlibc

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

Reply via email to