Skip to content

Commit c6df027

Browse files
authored
Update tasks.json
Updating tasks.json
1 parent 64f84a7 commit c6df027

File tree

1 file changed

+58
-51
lines changed

1 file changed

+58
-51
lines changed
Lines changed: 58 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,63 @@
11
{
22
// See https://go.microsoft.com/fwlink/?LinkId=733558
33
// for the documentation about the tasks.json format
4-
"version": "2.0.0",
5-
"tasks": [
6-
{
7-
"label": "build (Unix)",
8-
"type": "shell",
9-
"command": "make",
10-
"group": {
11-
"kind": "build",
12-
"isDefault": true
13-
},
14-
"problemMatcher": ["$gcc"],
15-
"options": {
16-
"cwd": "${workspaceFolder}"
17-
},
18-
"detail": "Build using Makefile (Linux/macOS)"
19-
},
20-
{
21-
"label": "build (Windows)",
22-
"type": "shell",
23-
"command": "build.cmd",
24-
"group": "build",
25-
"problemMatcher": ["$msCompile"],
26-
"options": {
27-
"cwd": "${workspaceFolder}",
28-
"shell": {
29-
"executable": "cmd.exe",
30-
"args": ["/C"]
31-
}
32-
},
33-
"detail": "Build using build.cmd for Windows (ensures g++ environment is set up)"
34-
},
35-
{
36-
"label": "clean (Unix)",
37-
"type": "shell",
38-
"command": "make clean",
39-
"options": {
40-
"cwd": "${workspaceFolder}"
41-
}
42-
},
43-
{
44-
"label": "clean (Windows)",
45-
"type": "shell",
46-
"command": "del /Q fib.exe",
47-
"options": {
48-
"cwd": "${workspaceFolder}",
49-
"shell": {
50-
"executable": "cmd.exe",
51-
"args": ["/C"]
52-
}
53-
}
4+
5+
"version": "2.0.0",
6+
"tasks": [
7+
{
8+
"label": "build (Windows)",
9+
"type": "shell",
10+
"command": "build.cmd",
11+
"group": {
12+
"kind": "build",
13+
"isDefault": true
14+
},
15+
"windows": {
16+
"command": "build.cmd"
17+
},
18+
"problemMatcher": ["$msCompile"],
19+
"options": {
20+
"cwd": "${workspaceFolder}"
21+
}
22+
},
23+
{
24+
"label": "build (Linux/macOS)",
25+
"type": "shell",
26+
"command": "make",
27+
"group": {
28+
"kind": "build",
29+
"isDefault": true
30+
},
31+
"linux": {
32+
"command": "make"
33+
},
34+
"osx": {
35+
"command": "make"
36+
},
37+
"problemMatcher": ["$gcc"],
38+
"options": {
39+
"cwd": "${workspaceFolder}"
40+
}
41+
},
42+
{
43+
"label": "clean (Windows)",
44+
"type": "shell",
45+
"command": "del /Q fib.exe",
46+
"options": {
47+
"cwd": "${workspaceFolder}",
48+
"shell": {
49+
"executable": "cmd.exe",
50+
"args": ["/C"]
5451
}
55-
]
52+
}
53+
},
54+
{
55+
"label": "clean (Linux/macOS)",
56+
"type": "shell",
57+
"command": "make clean",
58+
"options": {
59+
"cwd": "${workspaceFolder}"
60+
}
61+
}
62+
]
5663
}

0 commit comments

Comments
 (0)