mirror of
https://gitee.com/openharmony/third_party_benchmark
synced 2024-11-23 07:20:12 +00:00
c45f01866b
* CMake: implement LTO for clang. Fixes #478 * LTO: add basic docs about required executables.
9 lines
287 B
CMake
9 lines
287 B
CMake
find_package(LLVMAr REQUIRED)
|
|
set(CMAKE_AR "${LLVMAR_EXECUTABLE}" CACHE FILEPATH "" FORCE)
|
|
|
|
find_package(LLVMNm REQUIRED)
|
|
set(CMAKE_NM "${LLVMNM_EXECUTABLE}" CACHE FILEPATH "" FORCE)
|
|
|
|
find_package(LLVMRanLib REQUIRED)
|
|
set(CMAKE_RANLIB "${LLVMRANLIB_EXECUTABLE}" CACHE FILEPATH "" FORCE)
|