Skip to content

Commit

Permalink
Bug 1594520 - Change directory before running mach in .vscode/tasks.j…
Browse files Browse the repository at this point in the history
…son on Windows. r=jya

The build is quite fragile if the path to mach is not precisely
formatted. Work around this by cd-ing to the appropriate directory and
then calling 'mach' with a relative path. This mimics a normal user
workflow in mozilla-build.

Differential Revision: https://phabricator.services.mozilla.com/D52968
  • Loading branch information
moztcampbell committed Nov 14, 2019
1 parent 4072040 commit 0296901
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,12 @@
"windows": {
"command": "/mozilla-build/start-shell.bat",
"args": [
"cd",
// Use PowerShell to mangle path for mozilla-build environment
{"value": "$('${workspaceFolder}\\mach' -replace '\\\\','/')", "quoting": "weak"},
{"value": "$('${workspaceFolder}' -replace '\\\\','/')", "quoting": "weak"},
"';'",

"mach",
"--log-no-times"
]
},
Expand Down

0 comments on commit 0296901

Please sign in to comment.