Add support for generating compile_commands.json
- Integrate premake-ecc module for generating compile_commands.json - Add .clangd config pointing to build/ directory - Add 'Generate compile_commands.json' task - Run compile_commands generation automatically on build
This commit is contained in:
25
.vscode/tasks.json
vendored
25
.vscode/tasks.json
vendored
@@ -95,7 +95,30 @@
|
||||
"osx": {
|
||||
"command": "premake5.osx"
|
||||
},
|
||||
"group": "build"
|
||||
"group": "build",
|
||||
"dependsOn": ["Generate compile_commands.json"]
|
||||
},
|
||||
{
|
||||
"label": "Generate compile_commands.json",
|
||||
"type": "process",
|
||||
"command": "./premake5",
|
||||
"options": {
|
||||
"cwd": "${workspaceFolder}/build/"
|
||||
},
|
||||
"args": [
|
||||
"ecc"
|
||||
],
|
||||
"windows": {
|
||||
"command": "./premake5.exe"
|
||||
},
|
||||
"linux": {
|
||||
"command": "./premake5"
|
||||
},
|
||||
"osx": {
|
||||
"command": "premake5.osx"
|
||||
},
|
||||
"group": "build",
|
||||
"problemMatcher": []
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user