-
Notifications
You must be signed in to change notification settings - Fork 3
/
clang.cmake
18 lines (15 loc) · 952 Bytes
/
clang.cmake
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
set(CLANG_ROOT "/home/debian/clang+llvm-7.0.0-armv7a-linux-gnueabihf")
set(COMPILER clang)
set(triple arm-linux-gnueabihf)
set(CMAKE_C_COMPILER ${CLANG_ROOT}/bin/clang)
set(CMAKE_C_COMPILER_TARGET ${triple})
set(CMAKE_ASM_COMPILER_TARGET ${triple})
set(CMAKE_CXX_COMPILER ${CLANG_ROOT}/bin/clang++)
set(CMAKE_CXX_COMPILER_TARGET ${triple})
set(CMAKE_AR "${CLANG_ROOT}/bin/llvm-ar" CACHE INTERNAL " " FORCE)
set(CMAKE_LINKER "${CLANG_ROOT}/bin/llvm-link" CACHE INTERNAL " " FORCE)
SET(CMAKE_NM "${CLANG_ROOT}/bin/llvm-nm" CACHE INTERNAL " " FORCE)
SET(CMAKE_OBJDUMP "${CLANG_ROOT}/bin/llvm-objdump" CACHE INTERNAL " " FORCE)
SET(CMAKE_RANLIB "${CLANG_ROOT}/bin/llvm-ranlib" CACHE INTERNAL " " FORCE)
set(CMAKE_OBJCOPY "${CLANG_ROOT}/bin/llvm-objcopy" CACHE INTERNAL " " FORCE)
set(CMAKE_READELF readelf CACHE INTERNAL " " FORCE)