[clang] [compiler-rt] [llvm] [CMake] Use Clang to infer the target triple (PR #89425)

Petr Hosek via cfe-commits cfe-commits at lists.llvm.org
Mon Jun 24 23:40:23 PDT 2024


================
@@ -142,7 +142,7 @@ if(WIN32 OR LLVM_WINSYSROOT)
   set(RUNTIMES_${target}_CMAKE_MODULE_LINKER_FLAGS ${WINDOWS_LINK_FLAGS} CACHE STRING "")
 endif()
 
-foreach(target aarch64-unknown-linux-gnu;armv7-unknown-linux-gnueabihf;i386-unknown-linux-gnu;riscv64-unknown-linux-gnu;x86_64-unknown-linux-gnu)
+foreach(target aarch64-linux-gnu;armv7-linux-gnueabihf;i386-linux-gnu;riscv64-linux-gnu;x86_64-linux-gnu)
----------------
petrhosek wrote:

I included this as a regression test, without this change the build of our toolchain would break, but I'm fine omitting this if you prefer.

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


More information about the cfe-commits mailing list