From 4383a929d6c4b02b0fbf9e758e906de9a15251a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E5=8D=9A=E4=BB=81=28Buo-ren=20Lin=29?= Date: Mon, 26 Nov 2018 10:10:11 +0000 Subject: [PATCH] Use remote part's implementation of ccache This patch uses the remote part implementation of ccache to shrink the lines of code in the recipe. The implementation of the remote part can be acquired by running `snapcraft define ccache`. --- snap/snapcraft.yaml | 34 ---------------------------------- 1 file changed, 34 deletions(-) diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index c9505c67bf..1878c54cd2 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -326,40 +326,6 @@ parts: ccache: after: - gcc-6 - override-pull: 'true' - build-packages: - - ccache - plugin: nil - override-build: | - mkdir \ - --parents \ - "${SNAPCRAFT_PART_INSTALL}"/bin - ln \ - --force \ - --symbolic \ - "$(which ccache)" \ - "${SNAPCRAFT_PART_INSTALL}"/bin/gcc-6 - ln \ - --force \ - --symbolic \ - "$(which ccache)" \ - "${SNAPCRAFT_PART_INSTALL}"/bin/g++-6 - ln \ - --force \ - --symbolic \ - ./gcc-6 \ - "${SNAPCRAFT_PART_INSTALL}"/bin/gcc - ln \ - --force \ - --symbolic \ - ./g++-6 \ - "${SNAPCRAFT_PART_INSTALL}"/bin/g++ - filesets: - executables: - - bin/* - stage: - - $executables - override-prime: 'true' # This pseudo part setups version 6 of GCC, which is not available # in Ubuntu 16.04 software source.