Skip to content

Commit 215979d

Browse files
janjongboomsg-
authored andcommitted
make on clean Windows
1 parent eff329d commit 215979d

File tree

2 files changed

+28
-15
lines changed

2 files changed

+28
-15
lines changed

tools/export/vscode/launch.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
"serverLaunchTimeout": 20000,
1616
"filterStderr": true,
1717
"filterStdout": false,
18-
"preLaunchTask": "make",
1918
"serverStarted": "GDB\\ server\\ started",
19+
"preLaunchTask": "make",
2020
"setupCommands": [
2121
{ "text": "-target-select remote localhost:3333", "description": "connect to target", "ignoreFailures": false },
2222
{ "text": "-file-exec-and-symbols ${workspaceRoot}/BUILD/${workspaceRootFolderName}.elf", "description": "load file", "ignoreFailures": false},

tools/export/vscode/tasks.tmpl

Lines changed: 27 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,34 @@
22
// See https://go.microsoft.com/fwlink/?LinkId=733558
33
// for the documentation about the tasks.json format
44
"version": "0.1.0",
5-
"name": "make",
6-
"command": "make",
75
"isShellCommand": true,
8-
"args": ["-j"],
9-
"showOutput": "always",
10-
"problemMatcher": {
11-
"owner": "cpp",
12-
"fileLocation": ["relative", "${workspaceRoot}/mbed-os"],
13-
"pattern": {
14-
"regexp": "^(.*):(\\d+):(\\d+):\\s+(warning|error):\\s+(.*)$",
15-
"file": 1,
16-
"line": 2,
17-
"column": 3,
18-
"severity": 4,
19-
"message": 5
6+
"showOutput": "always",,
7+
"tasks": [
8+
{
9+
"taskName": "make",
10+
"problemMatcher": {
11+
"owner": "cpp",
12+
"fileLocation": ["relative", "${workspaceRoot}/mbed-os"],
13+
"pattern": {
14+
"regexp": "^(.*):(\\d+):(\\d+):\\s+(warning|error):\\s+(.*)$",
15+
"file": 1,
16+
"line": 2,
17+
"column": 3,
18+
"severity": 4,
19+
"message": 5
20+
}
21+
}
2022
}
23+
],
24+
"linux": {
25+
"command": "make",
26+
"args": ["-j"]
27+
},
28+
"osx": {
29+
"command": "make",
30+
"args": ["-j"]
31+
},
32+
"windows": {
33+
"command": "${workspaceRoot}\\.vscode\\bin\\windows\\make.bat"
2134
}
2235
}

0 commit comments

Comments
 (0)