"vscode:/vscode.git/clone" did not exist on "11301fd5061ee2653ef71822c740e657f52a24bf"
Commit 8156f647 authored by xoviat's avatar xoviat Committed by GitHub
Browse files

manylinux_utils: add activate_ccache

parent 6f4b888a
......@@ -49,3 +49,25 @@ function repair_wheelhouse {
done
chmod -R a+rwX $out_dir
}
function activate_ccache {
# Link up the correct location for ccache
ln -s /parent-home/.ccache $HOME/.ccache
# Now install ccache
yum install -y ccache
# Create fake compilers and prepend them to the PATH
# Note that yum is supposed to create these for us,
# but I had trouble finding them
local ccache_dir=/usr/lib/ccache/compilers
mkdir -p $ccache_dir
ln -s /usr/bin/ccache $CCACHE_DIR/gcc
ln -s /usr/bin/ccache $CCACHE_DIR/g++
ln -s /usr/bin/ccache $CCACHE_DIR/cc
ln -s /usr/bin/ccache $CCACHE_DIR/c++
export PATH=$CCACHE_DIR:$PATH
# Prove to the developer that ccache is activated
which gcc
}
Markdown is supported
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