Compare commits

...

2 Commits

Author SHA1 Message Date
JiXieShi 3709d3d284 feat(.vscode/tasks.json): 添加 CMake 配置任务以支持项目配置和构建。 2024-12-15 23:16:46 +08:00
JiXieShi 58ead967ff 🎨 refactor(.vscode/tasks.json): 移除CMake配置任务,添加并行编译线程数的输入选项
🐛 fix(demo/oled/test.c): 优化代码可读性
2024-12-15 23:09:55 +08:00
2 changed files with 51 additions and 43 deletions

12
.vscode/tasks.json vendored
View File

@ -54,7 +54,9 @@
"--build", "--build",
"build", "build",
"--target", "--target",
"all" "all",
"--",
"-j${input:threadCount}"
], ],
"group": { "group": {
"kind": "build", "kind": "build",
@ -63,7 +65,7 @@
"problemMatcher": [ "problemMatcher": [
"$gcc" "$gcc"
], ],
"detail": "Build the project using CMake and Ninja." "detail": "Build the project using CMake with parallel compilation."
} }
], ],
"inputs": [ "inputs": [
@ -78,6 +80,12 @@
], ],
"default": "Ninja", "default": "Ninja",
"description": "The CMake generator to use." "description": "The CMake generator to use."
},
{
"type": "promptString",
"id": "threadCount",
"description": "Number of parallel compilation threads",
"default": "8"
} }
] ]
} }