bug 1316329 - build from a symlink dir in generic-worker builds. r=pmoore,gps

MozReview-Commit-ID: EXp08oIquPF

--HG--
extra : rebase_source : f4c7b04fb6e22d837460dac98caee41259c1c62c
This commit is contained in:
Ted Mielczarek 2016-11-14 11:47:59 -05:00
Родитель 410b1ffbc6
Коммит 6673bfebc4
1 изменённых файлов: 15 добавлений и 2 удалений

Просмотреть файл

@ -220,7 +220,20 @@ def mozharness_on_windows(config, job, taskdesc):
hg_command.append(env['GECKO_HEAD_REPOSITORY'])
hg_command.append('.\\build\\src')
worker['command'] = [
worker['command'] = []
# sccache currently uses the full compiler commandline as input to the
# cache hash key, so create a symlink to the task dir and build from
# the symlink dir to get consistent paths.
if taskdesc.get('needs-sccache'):
worker['command'].extend([
r'if exist z:\build rmdir z:\build',
r'mklink /d z:\build %cd%',
# Grant delete permission on the link to everyone.
r'icacls z:\build /grant *S-1-1-0:D /L',
r'cd /d z:\build',
])
worker['command'].extend([
' '.join(hg_command),
' '.join(mh_command)
]
])