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
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