Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
sagemath
GitHub Repository: sagemath/sage
Path: blob/develop/build/pkgs/ccache/spkg-install.in
4081 views
cd src

mkdir build
cd build
sdh_cmake -DCMAKE_BUILD_TYPE=Release \
          -DENABLE_TESTING=OFF \
		  ..
sdh_make
sdh_make_install

set -e

mkdir -p "$SAGE_LOCAL/libexec/ccache"
ln -sf ../../bin/ccache "$SAGE_LOCAL/libexec/ccache/cc"
ln -sf ../../bin/ccache "$SAGE_LOCAL/libexec/ccache/c++"
ln -sf ../../bin/ccache "$SAGE_LOCAL/libexec/ccache/gcc"
ln -sf ../../bin/ccache "$SAGE_LOCAL/libexec/ccache/g++"
ln -sf ../../bin/ccache "$SAGE_LOCAL/libexec/ccache/clang"
ln -sf ../../bin/ccache "$SAGE_LOCAL/libexec/ccache/clang++"

# Copy a reasonable default configuration for Sage
# (cache size of 4G and compression enabled)
cp -p ../../ccache.conf "$SAGE_LOCAL/etc"