Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
fengzch-das
multibuild
Commits
8156f647
Commit
8156f647
authored
Oct 07, 2017
by
xoviat
Committed by
GitHub
Oct 07, 2017
Browse files
manylinux_utils: add activate_ccache
parent
6f4b888a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
manylinux_utils.sh
manylinux_utils.sh
+22
-0
No files found.
manylinux_utils.sh
View file @
8156f647
...
@@ -49,3 +49,25 @@ function repair_wheelhouse {
...
@@ -49,3 +49,25 @@ function repair_wheelhouse {
done
done
chmod
-R
a+rwX
$out_dir
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
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment