Commit ea7e4206 authored by Christian Dietrich's avatar Christian Dietrich
Browse files

wrappers: ccache wrapper

parent c6dc85d9
......@@ -5,11 +5,21 @@ configure_file(clang-hash.in ${PROJECT_BINARY_DIR}/wrappers/clang-hash)
configure_file(clang-hash-collect.in ${PROJECT_BINARY_DIR}/wrappers/clang-hash-collect)
# These wrappers can be used for the actual (re)compilation of whole procects.
# - clang-normal: normal clang operation; no speedup
# - clang-ccache: ccache assisted clang
# - clang-hash-stop: clang-hash assisted clang
execute_process(
COMMAND "${CMAKE_COMMAND}" "-E" "create_symlink"
"${LLVM_C_COMPILER}" "${CMAKE_CURRENT_BINARY_DIR}/clang-normal"
)
find_program(CCACHE NAMES "ccache")
if (NOT CCACHE)
message(ERROR "CCACHE not found")
endif()
configure_file(clang-ccache.in ${PROJECT_BINARY_DIR}/wrappers/clang-ccache)
configure_file(clang-hash-stop.in ${PROJECT_BINARY_DIR}/wrappers/clang-hash-stop)
......
#!/usr/bin/env bash
printf -v ARGS "%q " "$@"
${CCACHE} ${LLVM_C_COMPILER} $ARGS
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment