From 32d62a5c2dbef0e856e5d8e03046f6e3ba62936f Mon Sep 17 00:00:00 2001 From: Andrey Lushnikov Date: Tue, 9 Feb 2021 09:06:50 -0800 Subject: [PATCH] devops: fix goma path on windows (#5381) Convert unix path to win path when running GOMA on windows. --- browser_patches/chromium/build.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/browser_patches/chromium/build.sh b/browser_patches/chromium/build.sh index 0b404bba6f..2eeba0f8ce 100755 --- a/browser_patches/chromium/build.sh +++ b/browser_patches/chromium/build.sh @@ -168,8 +168,12 @@ EOF fi if [[ ! -z "$USE_GOMA" ]]; then + PLAYWRIGHT_GOMA_PATH="${SCRIPT_PATH}/electron-build-tools/third_party/goma" + if [[ $1 == "--compile-win"* ]]; then + PLAYWRIGHT_GOMA_PATH=$(cygpath -w "${PLAYWRIGHT_GOMA_PATH}") + fi echo 'use_goma = true' >> ./out/Default/args.gn - echo "goma_dir = '${SCRIPT_PATH}/electron-build-tools/third_party/goma'" >> ./out/Default/args.gn + echo "goma_dir = '${PLAYWRIGHT_GOMA_PATH}'" >> ./out/Default/args.gn fi if [[ $1 == "--compile-win"* ]]; then