Skip to content

Commit 2441261

Browse files
committed
Update Windows build task to use build.cmd
1 parent 07478e2 commit 2441261

File tree

1 file changed

+14
-22
lines changed

1 file changed

+14
-22
lines changed
Lines changed: 14 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
// See https://go.microsoft.com/fwlink/?LinkId=733558
2+
// See https://go.microsoft.com/fwlink/?LinkId=733558
33
// for the documentation about the tasks.json format
44
"version": "2.0.0",
55
"tasks": [
@@ -20,21 +20,17 @@
2020
{
2121
"label": "build (Windows)",
2222
"type": "shell",
23-
"command": "g++ -std=c++11 -pthread -o fib.exe main.cpp thread.cpp",
23+
"command": "build.cmd",
2424
"group": "build",
25-
"problemMatcher": ["$gcc"],
25+
"problemMatcher": ["$msCompile"],
2626
"options": {
27-
"cwd": "${workspaceFolder}"
28-
},
29-
"detail": "Build using g++ (Windows/MinGW)",
30-
"windows": {
31-
"options": {
32-
"shell": {
33-
"executable": "cmd.exe",
34-
"args": ["/C"]
35-
}
27+
"cwd": "${workspaceFolder}",
28+
"shell": {
29+
"executable": "cmd.exe",
30+
"args": ["/C"]
3631
}
37-
}
32+
},
33+
"detail": "Build using build.cmd for Windows (ensures g++ environment is set up)"
3834
},
3935
{
4036
"label": "clean (Unix)",
@@ -49,16 +45,12 @@
4945
"type": "shell",
5046
"command": "del /Q fib.exe",
5147
"options": {
52-
"cwd": "${workspaceFolder}"
53-
},
54-
"windows": {
55-
"options": {
56-
"shell": {
57-
"executable": "cmd.exe",
58-
"args": ["/C"]
59-
}
48+
"cwd": "${workspaceFolder}",
49+
"shell": {
50+
"executable": "cmd.exe",
51+
"args": ["/C"]
6052
}
6153
}
6254
}
6355
]
64-
}
56+
}

0 commit comments

Comments
 (0)