-
Notifications
You must be signed in to change notification settings - Fork 0
/
tasks.json
101 lines (101 loc) · 3.05 KB
/
tasks.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "cp build",
"type": "shell",
"options": {
"cwd": "${workspaceFolder}",
},
"windows": {
"command": "g++.exe",
"args": [
// "-pipe",
// // "-fsanitize=signed-integer-overflow,undefined", Causes compilation error in Windows
// "-g",
// "-march=native",
// // "-O2", This optimization causes errors while Debugging
// // "-std=c++17", Causes compilation error in Windows
// "-Wall",
// "-Wshadow",
// "-Wno-unused-result",
"${file}",
"-o",
"${fileBasenameNoExtension}.exe"
]
},
"problemMatcher": {
"owner": "cpp",
"fileLocation": ["relative", "${workspaceFolder}"],
"pattern": {
"regexp": "^(.*):(\\d+):(\\d+):\\s+(warning|error):\\s+(.*)$",
"file": 1,
"line": 2,
"column": 3,
"severity": 4,
"message": 5,
}
},
"presentation": {
"echo": true,
"reveal": "always",
"focus": false,
"panel": "shared",
"showReuseMessage": false,
"clear": true
},
"group": "build",
},
{
"label": "cp run",
"type": "shell",
"options": {
"cwd": "${workspaceFolder}",
"shell": {
"executable": "bash",
"args": ["-c"],
},
},
"windows": {
"command": "time ./${fileBasenameNoExtension}.exe < inputf.txt > outputf.txt",
"args": [""],
},
"presentation": {
"echo": true,
"reveal": "always",
"focus": false,
"panel": "shared",
"showReuseMessage": false,
"clear": false
},
"group": {
"kind": "test",
"isDefault": true
}
},
{
"label": "cp build and run",
"type": "shell",
"dependsOrder": "sequence",
"dependsOn":[
"cp build",
"cp run"
],
"group": {
"kind": "build",
"isDefault": true
}
},
{
"label": "clear",
"type": "shell",
"options": {
"cwd": "${workspaceFolder}",
},
"command": "rm *.exe",
"group": "build"
},
]
}