[clang] [clang][LoongArch] Add OHOS target (PR #127555)

Lu Weining via cfe-commits cfe-commits at lists.llvm.org
Tue Feb 18 17:46:25 PST 2025


================
@@ -2458,7 +2458,8 @@ void Generic_GCC::GCCInstallationDetector::AddDefaultGCCPrefixes(
 
   static const char *const LoongArch64LibDirs[] = {"/lib64", "/lib"};
   static const char *const LoongArch64Triples[] = {
-      "loongarch64-linux-gnu", "loongarch64-unknown-linux-gnu"};
+      "loongarch64-linux-gnu", "loongarch64-unknown-linux-gnu",
+      "loongarch64-linux-ohos"};
----------------
SixWeining wrote:

Why the ohos triple is added to `Gnu.cpp`. Seems that aarch64 and x86-64 don't add them.

https://github.com/llvm/llvm-project/pull/127555


More information about the cfe-commits mailing list