8000 Enable ccache in Mooncake compile by yuan-luo · Pull Request #203 · kvcache-ai/Mooncake · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Enable ccache in Mooncake compile #203

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 5, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
cmake_minimum_required(VERSION 3.16)
project(mooncake CXX C)

option(ENABLE_CCACHE "Whether to open ccache" OFF)
find_program(CCACHE_FOUND ccache)
if(CCACHE_FOUND AND ENABLE_CCACHE)
message(STATUS "Building with CCACHE enabled")
set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE ccache)
set_property(GLOBAL PROPERTY RULE_LAUNCH_LINK ccache)
endif()

enable_testing()

set(CMAKE_C_STANDARD 99)
Expand Down
7 changes: 5 additions & 2 deletions dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,11 @@ sudo apt-get install -y build-essential \
libcurl4-openssl-dev \
libhiredis-dev \
pkg-config \
patchelf

patchelf \
ccache

export CCACHE_DIR=~/.cache/ccache

pip install build setuptools wheel
echo "*** Download and installing [cpprest sdk] ***"
mkdir ${REPO_ROOT}/thirdparties
Expand Down
0