CSSC-PC更新了1个文件
This commit is contained in:
parent
14105906e9
commit
06b3c0bd64
62
工具/VSCODE/gcc编译.md
Normal file
62
工具/VSCODE/gcc编译.md
Normal file
@ -0,0 +1,62 @@
|
||||
---
|
||||
tags:
|
||||
- 代码块
|
||||
- 编译
|
||||
---
|
||||
vscode中同时编译多个源文件,`task.json`配置如下:
|
||||
```json
|
||||
{
|
||||
|
||||
"tasks": [
|
||||
|
||||
{
|
||||
|
||||
"type": "cppbuild",
|
||||
|
||||
"label": "C/C++: gcc.exe build active file",
|
||||
|
||||
"command": "D:\\mingw64\\bin\\gcc.exe",
|
||||
|
||||
"args": [
|
||||
|
||||
"-fdiagnostics-color=always",
|
||||
|
||||
"-g", "${workspaceFolder}\\*.c",
|
||||
|
||||
"-I", "${workspaceFolder}",
|
||||
|
||||
"-o", "${workspaceFolder}\\${fileBasenameNoExtension}.exe"
|
||||
|
||||
],
|
||||
|
||||
"options": {
|
||||
|
||||
"cwd": "${fileDirname}"
|
||||
|
||||
},
|
||||
|
||||
"problemMatcher": [
|
||||
|
||||
"$gcc"
|
||||
|
||||
],
|
||||
|
||||
"group": {
|
||||
|
||||
"kind": "build",
|
||||
|
||||
"isDefault": true
|
||||
|
||||
},
|
||||
|
||||
"detail": "Task generated by Debugger."
|
||||
|
||||
}
|
||||
|
||||
],
|
||||
|
||||
"version": "2.0.0"
|
||||
|
||||
}
|
||||
```
|
||||
`
|
Loading…
Reference in New Issue
Block a user