From 45837af24a33308a70a3454f0f650f9fe728e272 Mon Sep 17 00:00:00 2001 From: Aleksei Kuzmin Date: Wed, 12 Sep 2018 13:08:05 +0200 Subject: [PATCH] ci: do not use scripts and binaries from the libcc repo --- .circleci/config.yml | 2 +- vsts-gn.yml | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 182250853702..c7c402dbd76a 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -169,7 +169,7 @@ mac-build-steps: &mac-build-steps name: GN gen command: | cd src - SCCACHE_PATH="$PWD/libchromiumcontent/tools/sccache/aad2120/mac/sccache" + SCCACHE_PATH="$PWD/electron/external_binaries/sccache" echo 'export SCCACHE_WRAPPER="'"$SCCACHE_PATH"'"' >> $BASH_ENV echo 'export CHROMIUM_BUILDTOOLS_PATH="'"$PWD"'/buildtools"' >> $BASH_ENV source $BASH_ENV diff --git a/vsts-gn.yml b/vsts-gn.yml index 3c9985b16c04..24ed1f5611c3 100644 --- a/vsts-gn.yml +++ b/vsts-gn.yml @@ -31,13 +31,13 @@ phases: - bash: | cd src export CHROMIUM_BUILDTOOLS_PATH=`pwd`/buildtools - export SCCACHE_WRAPPER="`pwd`/electron/external_binaries/sccache" - export SCCACHE_HELPER="`pwd`/libchromiumcontent/script/sccache" - "$SCCACHE_HELPER" --start-server --azure_container "$(SCCACHE_AZURE_BLOB_CONTAINER)" --azure_connection "$(SCCACHE_AZURE_CONNECTION_STRING)" - echo "##vso[task.setvariable variable=SCCACHE_WRAPPER]$SCCACHE_WRAPPER" - echo "##vso[task.setvariable variable=CHROMIUM_BUILDTOOLS_PATH]`pwd`/buildtools" + export SCCACHE_BINARY="`pwd`/electron/external_binaries/sccache" + # SCCACHE_AZURE_BLOB_CONTAINER and SCCACHE_AZURE_CONNECTION_STRING are expected to be set. + "$SCCACHE_BINARY" --start-server + echo "##vso[task.setvariable variable=SCCACHE_BINARY]$SCCACHE_BINARY" + echo "##vso[task.setvariable variable=CHROMIUM_BUILDTOOLS_PATH]$CHROMIUM_BUILDTOOLS_PATH" echo "GN gen for: $GN_CONFIG" - gn gen out/Default --args='import("'$GN_CONFIG'") cc_wrapper="'"$SCCACHE_WRAPPER"'"' + gn gen out/Default --args='import("'$GN_CONFIG'") cc_wrapper="'"$SCCACHE_BINARY"'"' name: GN_gen - bash: | @@ -46,8 +46,8 @@ phases: name: Ninja_build - bash: | - "$SCCACHE_WRAPPER" -s - "$SCCACHE_WRAPPER" --stop-server + "$SCCACHE_BINARY" -s + "$SCCACHE_BINARY" --stop-server name: Check_sccache_stats - bash: |