Fix vscode tasks.json for different shells

Change-Id: I0133e96be89254b52e3d2aa796ba8b62d851c582
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/58723
Reviewed-by: Ben Clayton <bclayton@google.com>
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
Auto-Submit: Ben Clayton <bclayton@google.com>
Commit-Queue: Corentin Wallez <cwallez@chromium.org>
This commit is contained in:
Ben Clayton 2021-07-19 17:16:28 +00:00 committed by Dawn LUCI CQ
parent 2950a94b6e
commit 9b2c17caf9
1 changed files with 20 additions and 8 deletions

28
.vscode/tasks.json vendored
View File

@ -34,11 +34,15 @@
], ],
}, },
"windows": { "windows": {
"command": "cmd", "command": "/C",
"args": [ "args": [
"/C", "ninja && echo Done",
"ninja && echo Done"
], ],
"options": {
"shell": {
"executable": "cmd"
},
}
}, },
"options": { "options": {
"cwd": "${workspaceRoot}/out/active", "cwd": "${workspaceRoot}/out/active",
@ -86,11 +90,15 @@
], ],
}, },
"windows": { "windows": {
"command": "cmd", "command": "/C",
"args": [ "args": [
"/C",
"(IF \"${input:buildType}\" == \"Debug\" ( gn gen 'out\\${input:buildType}' --args=is_debug=true ) ELSE ( gn gen 'out\\${input:buildType}' --args=is_debug=false )) && (IF EXIST 'out\\active' rmdir 'out\\active' /q /s) && (mklink /j 'out\\active' 'out\\${input:buildType}')", "(IF \"${input:buildType}\" == \"Debug\" ( gn gen 'out\\${input:buildType}' --args=is_debug=true ) ELSE ( gn gen 'out\\${input:buildType}' --args=is_debug=false )) && (IF EXIST 'out\\active' rmdir 'out\\active' /q /s) && (mklink /j 'out\\active' 'out\\${input:buildType}')",
], ],
"options": {
"shell": {
"executable": "cmd"
},
}
}, },
"options": { "options": {
"cwd": "${workspaceRoot}" "cwd": "${workspaceRoot}"
@ -117,11 +125,15 @@
], ],
}, },
"windows": { "windows": {
"command": "cmd", "command": "/C",
"args": [ "args": [
"/C", "git fetch origin && git rebase origin/main && gclient sync && echo Done",
"git fetch origin && git rebase origin/main && gclient sync && echo Done"
], ],
"options": {
"shell": {
"executable": "cmd"
},
}
}, },
"options": { "options": {
"cwd": "${workspaceRoot}" "cwd": "${workspaceRoot}"