summaryrefslogtreecommitdiffstats
path: root/hammer.py
diff options
context:
space:
mode:
authorMichal Nowikowski <godfryd@isc.org>2019-10-01 06:12:53 +0200
committerMichal Nowikowski <godfryd@isc.org>2019-10-01 06:12:53 +0200
commite0e0fd462edfe794043ecf3ff991a88b104e957b (patch)
tree6e3bec64875e38dca6b121932b5abd8f0b2d786c /hammer.py
parenthammer: fixed missing variable repository_url (diff)
downloadkea-e0e0fd462edfe794043ecf3ff991a88b104e957b.tar.xz
kea-e0e0fd462edfe794043ecf3ff991a88b104e957b.zip
hammer: fixed ccache for alpine
Diffstat (limited to 'hammer.py')
-rwxr-xr-xhammer.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/hammer.py b/hammer.py
index fafe9d1287..09b94cb8d5 100755
--- a/hammer.py
+++ b/hammer.py
@@ -1355,6 +1355,9 @@ def prepare_system_local(features, check_times):
if 'native-pkg' in features:
packages.extend(['alpine-sdk'])
+ if 'ccache' in features:
+ packages.extend(['ccache'])
+
install_pkgs(packages, env=env, timeout=6 * 60, check_times=check_times)
# log4cplus needs to be taken from extra repository, edge testing
@@ -1406,6 +1409,9 @@ def _prepare_ccache_if_needed(system, ccache_dir, env):
ccache_bin_path = '/usr/lib64/ccache'
env['CC'] = 'ccache gcc'
env['CXX'] = 'ccache g++'
+ elif system == 'alpine':
+ # TODO: it doesn't work yet, new abuild is needed and add 'USE_CCACHE=1' to /etc/abuild.conf
+ ccache_bin_path = '/usr/lib/ccache/bin'
env['PATH'] = ccache_bin_path + ':' + env['PATH']
env['CCACHE_DIR'] = ccache_dir
return env