From 840fe26a54fb17567679eb0bf07bcb34c00ef0f8 Mon Sep 17 00:00:00 2001 From: KOLANICH Date: Mon, 19 Sep 2022 13:13:31 +0300 Subject: [PATCH] Improve recompilation times by utilizing CCache Signed-off-by: KOLANICH --- .gitmodules | 3 +++ CMakeLists.txt | 2 ++ cmake/3rdparty/CCache | 1 + 3 files changed, 6 insertions(+) create mode 160000 cmake/3rdparty/CCache diff --git a/.gitmodules b/.gitmodules index e03336443d73..bec3fb51ea70 100644 --- a/.gitmodules +++ b/.gitmodules @@ -16,3 +16,6 @@ [submodule "3rdparty/cutlass"] path = 3rdparty/cutlass url = https://github.com/NVIDIA/cutlass.git +[submodule "cmake/3rdparty/CCache"] + path = cmake/3rdparty/CCache + url = https://github.com/TheLartians/Ccache.cmake diff --git a/CMakeLists.txt b/CMakeLists.txt index 7c355238b8c8..cb550a3057cd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,8 @@ cmake_minimum_required(VERSION 3.2) project(tvm C CXX) +add_subdirectory("cmake/3rdparty/CCache") + # Utility functions include(cmake/utils/Utils.cmake) include(cmake/utils/Summary.cmake) diff --git a/cmake/3rdparty/CCache b/cmake/3rdparty/CCache new file mode 160000 index 000000000000..2f890b8d3bd8 --- /dev/null +++ b/cmake/3rdparty/CCache @@ -0,0 +1 @@ +Subproject commit 2f890b8d3bd810442c482797c24c7b3d97755215