CSSC-PC更新了1个文件

This commit is contained in:
murmur 2024-11-07 14:44:17 +08:00
parent 14105906e9
commit 06b3c0bd64

View 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"
}
```
`