Skip to content

Commit

Permalink
feat build: add VSCode config files (#62)
Browse files Browse the repository at this point in the history
Closes: #47
Co-authored-by: Anatoly Shirokov <[email protected]>
  • Loading branch information
Anton3 and anatoly-spb authored Dec 25, 2023
1 parent 3dc1179 commit 883963b
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,13 @@ __pycache__
build*
compile_commands.json
.cache/
.ccache/
.idea/
.vscode/
!.vscode/c_cpp_properties.json
!.vscode/cmake-variants.yaml
!.vscode/README.md
.cores/
.ccache/
cmake-build-*
Testing/
.DS_Store
Expand Down
2 changes: 2 additions & 0 deletions .vscode/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
This is the minimal configuration for VSCode IDE.
If you don't use VSCode, feel free to delete this directory.
10 changes: 10 additions & 0 deletions .vscode/c_cpp_properties.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"configurations": [
{
"name": "CMake",
"compileCommands": "${config:cmake.buildDirectory}/compile_commands.json",
"configurationProvider": "ms-vscode.cmake-tools"
}
],
"version": 4
}
17 changes: 17 additions & 0 deletions .vscode/cmake-variants.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
buildType:
default: debug
choices:
debug:
short: Debug
long: Unoptimized debug build with sanitizers
buildType: Debug
settings:
CMAKE_EXPORT_COMPILE_COMMANDS: ON
USERVER_SANITIZE: addr ub

release:
short: Release
long: Optimized build
buildType: Release
settings:
CMAKE_EXPORT_COMPILE_COMMANDS: ON

0 comments on commit 883963b

Please sign in to comment.