1
0
mirror of https://github.com/google/benchmark.git synced 2025-01-15 22:30:52 +08:00
benchmark/cmake/llvm-toolchain.cmake
Roman Lebedev c45f01866b CMake: implement LTO for clang. Fixes ()
* CMake: implement LTO for clang. Fixes 

* LTO: add basic docs about required executables.
2017-11-29 12:48:43 -08:00

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)