[clang] [CMake][Fuchsia] Revert back to using normalized triples (PR #98189)

Petr Hosek via cfe-commits cfe-commits at lists.llvm.org
Tue Jul 9 10:03:51 PDT 2024


https://github.com/petrhosek created https://github.com/llvm/llvm-project/pull/98189

We switched to denormalized triples in #89425 but that introduced a lot of downstream issues so switch back to normalized triples.

>From ba10fe4c761cefaecbde0828d320d05e359d5e7f Mon Sep 17 00:00:00 2001
From: Petr Hosek <phosek at google.com>
Date: Tue, 9 Jul 2024 10:02:42 -0700
Subject: [PATCH] [CMake][Fuchsia] Revert back to using normalized triples

We switched to denormalized triples in #89425 but that introduced a lot
of downstream issues so switch back to normalized triples.
---
 clang/cmake/caches/Fuchsia-stage2.cmake | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/clang/cmake/caches/Fuchsia-stage2.cmake b/clang/cmake/caches/Fuchsia-stage2.cmake
index 52687a2cf8ea9..9892b5d58e719 100644
--- a/clang/cmake/caches/Fuchsia-stage2.cmake
+++ b/clang/cmake/caches/Fuchsia-stage2.cmake
@@ -141,7 +141,7 @@ if(WIN32 OR LLVM_WINSYSROOT)
   set(RUNTIMES_${target}_CMAKE_MODULE_LINKER_FLAGS ${WINDOWS_LINK_FLAGS} CACHE STRING "")
 endif()
 
-foreach(target aarch64-linux-gnu;armv7-linux-gnueabihf;i386-linux-gnu;riscv64-linux-gnu;x86_64-linux-gnu)
+foreach(target aarch64-unknown-linux-gnu;armv7-unknown-linux-gnueabihf;i386-unknown-linux-gnu;riscv64-unknown-linux-gnu;x86_64-unknown-linux-gnu)
   if(LINUX_${target}_SYSROOT)
     # Set the per-target builtins options.
     list(APPEND BUILTIN_TARGETS "${target}")



More information about the cfe-commits mailing list