mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-21 01:05:45 +00:00
87cc8cdde5
It keeps running and prevents the worker from unmounting, failing the task. Differential Revision: https://phabricator.services.mozilla.com/D19910
29 lines
1.3 KiB
Bash
Executable File
29 lines
1.3 KiB
Bash
Executable File
#!/bin/bash
|
|
set -e -v
|
|
|
|
# This script is for building GN on Windows.
|
|
|
|
WORKSPACE=$PWD
|
|
UPLOAD_DIR=$WORKSPACE/public/build
|
|
COMPRESS_EXT=bz2
|
|
|
|
VSPATH="$WORKSPACE/build/src/vs2017_15.8.4"
|
|
|
|
export INCLUDE="${VSPATH}/VC/include:${VSPATH}/VC/atlmfc/include:${VSPATH}/SDK/Include/10.0.17134.0/ucrt:${VSPATH}/SDK/Include/10.0.17134.0/shared:${VSPATH}/SDK/Include/10.0.17134.0/um:${VSPATH}/SDK/Include/10.0.17134.0/winrt:${VSPATH}/DIA SDK/include"
|
|
export LIB="${VSPATH}/VC/lib/x86:${VSPATH}/VC/atlmfc/lib/x86:${VSPATH}/SDK/lib/10.0.17134.0/ucrt/x86:${VSPATH}/SDK/lib/10.0.17134.0/um/x86:${VSPATH}/DIA SDK/lib"
|
|
|
|
export PATH="$WORKSPACE/build/src/ninja/bin:$PATH"
|
|
export PATH="$WORKSPACE/build/src/mingw64/bin:$PATH"
|
|
export PATH="${VSPATH}/VC/bin/Hostx64/x86:${VSPATH}/VC/bin/Hostx64/x64:${VSPATH}/VC/bin/Hostx86/x86:${VSPATH}/SDK/bin/10.0.17134.0/x64:${VSPATH}/DIA SDK/bin:${PATH}"
|
|
export PATH="${VSPATH}/VC/redist/x86/Microsoft.VC141.CRT:${VSPATH}/SDK/Redist/ucrt/DLLs/x86:${PATH}"
|
|
|
|
cd $WORKSPACE/build/src
|
|
|
|
. taskcluster/scripts/misc/tooltool-download.sh
|
|
. taskcluster/scripts/misc/build-gn-common.sh
|
|
|
|
# Building with MSVC spawns a mspdbsrv process that keeps a dll open in the MSVC directory.
|
|
# This prevents the taskcluster worker from unmounting cleanly, and fails the build.
|
|
# So we kill it.
|
|
taskkill -f -im mspdbsrv.exe || true
|