prefer clang 14
This commit is contained in:
parent
2f8185fb92
commit
128ea52b07
@ -3,16 +3,16 @@ SET(CMAKE_SYSTEM_NAME Linux)
|
||||
set(CMAKE_SYSTEM_PROCESSOR aarch64)
|
||||
set(TARGET_TRIPLE aarch64-linux-gnu)
|
||||
|
||||
if(EXISTS "/usr/bin/clang-12")
|
||||
set(CMAKE_C_COMPILER /usr/bin/clang-12)
|
||||
set(CMAKE_CXX_COMPILER /usr/bin/clang++-12)
|
||||
set(CMAKE_ASM_COMPILER /usr/bin/clang-12)
|
||||
set(CMAKE_AR "/usr/bin/llvm-ar-12" CACHE FILEPATH "" FORCE)
|
||||
elseif(EXISTS "/usr/bin/clang-14")
|
||||
if(EXISTS "/usr/bin/clang-14")
|
||||
set(CMAKE_C_COMPILER /usr/bin/clang-14)
|
||||
set(CMAKE_CXX_COMPILER /usr/bin/clang++-14)
|
||||
set(CMAKE_ASM_COMPILER /usr/bin/clang-14)
|
||||
set(CMAKE_AR "/usr/bin/llvm-ar-14" CACHE FILEPATH "" FORCE)
|
||||
elseif(EXISTS "/usr/bin/clang-12")
|
||||
set(CMAKE_C_COMPILER /usr/bin/clang-12)
|
||||
set(CMAKE_CXX_COMPILER /usr/bin/clang++-12)
|
||||
set(CMAKE_ASM_COMPILER /usr/bin/clang-12)
|
||||
set(CMAKE_AR "/usr/bin/llvm-ar-12" CACHE FILEPATH "" FORCE)
|
||||
else()
|
||||
set(CMAKE_C_COMPILER /usr/bin/clang)
|
||||
set(CMAKE_CXX_COMPILER /usr/bin/clang++)
|
||||
|
@ -3,16 +3,16 @@ SET(CMAKE_SYSTEM_NAME Linux)
|
||||
set(CMAKE_SYSTEM_PROCESSOR arm)
|
||||
set(TARGET_TRIPLE arm-linux-gnueabihf)
|
||||
|
||||
if(EXISTS "/usr/bin/clang-12")
|
||||
set(CMAKE_C_COMPILER /usr/bin/clang-12)
|
||||
set(CMAKE_CXX_COMPILER /usr/bin/clang++-12)
|
||||
set(CMAKE_ASM_COMPILER /usr/bin/clang-12)
|
||||
set(CMAKE_AR "/usr/bin/llvm-ar-12" CACHE FILEPATH "" FORCE)
|
||||
elseif(EXISTS "/usr/bin/clang-14")
|
||||
if(EXISTS "/usr/bin/clang-14")
|
||||
set(CMAKE_C_COMPILER /usr/bin/clang-14)
|
||||
set(CMAKE_CXX_COMPILER /usr/bin/clang++-14)
|
||||
set(CMAKE_ASM_COMPILER /usr/bin/clang-14)
|
||||
set(CMAKE_AR "/usr/bin/llvm-ar-14" CACHE FILEPATH "" FORCE)
|
||||
elseif(EXISTS "/usr/bin/clang-12")
|
||||
set(CMAKE_C_COMPILER /usr/bin/clang-12)
|
||||
set(CMAKE_CXX_COMPILER /usr/bin/clang++-12)
|
||||
set(CMAKE_ASM_COMPILER /usr/bin/clang-12)
|
||||
set(CMAKE_AR "/usr/bin/llvm-ar-12" CACHE FILEPATH "" FORCE)
|
||||
else()
|
||||
set(CMAKE_C_COMPILER /usr/bin/clang)
|
||||
set(CMAKE_CXX_COMPILER /usr/bin/clang++)
|
||||
|
@ -3,16 +3,16 @@ SET(CMAKE_SYSTEM_NAME Linux)
|
||||
set(CMAKE_SYSTEM_PROCESSOR i386)
|
||||
set(TARGET_TRIPLE i386-linux-gnu)
|
||||
|
||||
if(EXISTS "/usr/bin/clang-12")
|
||||
set(CMAKE_C_COMPILER /usr/bin/clang-12)
|
||||
set(CMAKE_CXX_COMPILER /usr/bin/clang++-12)
|
||||
set(CMAKE_ASM_COMPILER /usr/bin/clang-12)
|
||||
set(CMAKE_AR "/usr/bin/llvm-ar-12" CACHE FILEPATH "" FORCE)
|
||||
elseif(EXISTS "/usr/bin/clang-14")
|
||||
if(EXISTS "/usr/bin/clang-14")
|
||||
set(CMAKE_C_COMPILER /usr/bin/clang-14)
|
||||
set(CMAKE_CXX_COMPILER /usr/bin/clang++-14)
|
||||
set(CMAKE_ASM_COMPILER /usr/bin/clang-14)
|
||||
set(CMAKE_AR "/usr/bin/llvm-ar-14" CACHE FILEPATH "" FORCE)
|
||||
elseif(EXISTS "/usr/bin/clang-12")
|
||||
set(CMAKE_C_COMPILER /usr/bin/clang-12)
|
||||
set(CMAKE_CXX_COMPILER /usr/bin/clang++-12)
|
||||
set(CMAKE_ASM_COMPILER /usr/bin/clang-12)
|
||||
set(CMAKE_AR "/usr/bin/llvm-ar-12" CACHE FILEPATH "" FORCE)
|
||||
else()
|
||||
set(CMAKE_C_COMPILER /usr/bin/clang)
|
||||
set(CMAKE_CXX_COMPILER /usr/bin/clang++)
|
||||
|
@ -3,16 +3,16 @@ SET(CMAKE_SYSTEM_NAME Linux)
|
||||
set(CMAKE_SYSTEM_PROCESSOR powerpc64le)
|
||||
set(TARGET_TRIPLE powerpc64le-linux-gnu)
|
||||
|
||||
if(EXISTS "/usr/bin/clang-12")
|
||||
set(CMAKE_C_COMPILER /usr/bin/clang-12)
|
||||
set(CMAKE_CXX_COMPILER /usr/bin/clang++-12)
|
||||
set(CMAKE_ASM_COMPILER /usr/bin/clang-12)
|
||||
set(CMAKE_AR "/usr/bin/llvm-ar-12" CACHE FILEPATH "" FORCE)
|
||||
elseif(EXISTS "/usr/bin/clang-14")
|
||||
if(EXISTS "/usr/bin/clang-14")
|
||||
set(CMAKE_C_COMPILER /usr/bin/clang-14)
|
||||
set(CMAKE_CXX_COMPILER /usr/bin/clang++-14)
|
||||
set(CMAKE_ASM_COMPILER /usr/bin/clang-14)
|
||||
set(CMAKE_AR "/usr/bin/llvm-ar-14" CACHE FILEPATH "" FORCE)
|
||||
elseif(EXISTS "/usr/bin/clang-12")
|
||||
set(CMAKE_C_COMPILER /usr/bin/clang-12)
|
||||
set(CMAKE_CXX_COMPILER /usr/bin/clang++-12)
|
||||
set(CMAKE_ASM_COMPILER /usr/bin/clang-12)
|
||||
set(CMAKE_AR "/usr/bin/llvm-ar-12" CACHE FILEPATH "" FORCE)
|
||||
else()
|
||||
set(CMAKE_C_COMPILER /usr/bin/clang)
|
||||
set(CMAKE_CXX_COMPILER /usr/bin/clang++)
|
||||
|
@ -3,16 +3,16 @@ SET(CMAKE_SYSTEM_NAME Linux)
|
||||
set(CMAKE_SYSTEM_PROCESSOR riscv64)
|
||||
set(TARGET_TRIPLE riscv64-linux-gnu)
|
||||
|
||||
if(EXISTS "/usr/bin/clang-12")
|
||||
set(CMAKE_C_COMPILER /usr/bin/clang-12)
|
||||
set(CMAKE_CXX_COMPILER /usr/bin/clang++-12)
|
||||
set(CMAKE_ASM_COMPILER /usr/bin/clang-12)
|
||||
set(CMAKE_AR "/usr/bin/llvm-ar-12" CACHE FILEPATH "" FORCE)
|
||||
elseif(EXISTS "/usr/bin/clang-14")
|
||||
if(EXISTS "/usr/bin/clang-14")
|
||||
set(CMAKE_C_COMPILER /usr/bin/clang-14)
|
||||
set(CMAKE_CXX_COMPILER /usr/bin/clang++-14)
|
||||
set(CMAKE_ASM_COMPILER /usr/bin/clang-14)
|
||||
set(CMAKE_AR "/usr/bin/llvm-ar-14" CACHE FILEPATH "" FORCE)
|
||||
elseif(EXISTS "/usr/bin/clang-12")
|
||||
set(CMAKE_C_COMPILER /usr/bin/clang-12)
|
||||
set(CMAKE_CXX_COMPILER /usr/bin/clang++-12)
|
||||
set(CMAKE_ASM_COMPILER /usr/bin/clang-12)
|
||||
set(CMAKE_AR "/usr/bin/llvm-ar-12" CACHE FILEPATH "" FORCE)
|
||||
else()
|
||||
set(CMAKE_C_COMPILER /usr/bin/clang)
|
||||
set(CMAKE_CXX_COMPILER /usr/bin/clang++)
|
||||
|
Loading…
x
Reference in New Issue
Block a user