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

YunQiang Su via cfe-commits cfe-commits at lists.llvm.org
Fri Apr 19 17:04:31 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)
----------------
wzssyqa wrote:

It seems offtopic of commit msg?
Since the normalize format of `aarch64-linux-gnu` is just aarch64-unknown-linux-gnu, why do we need to modify them?

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


More information about the cfe-commits mailing list