This commit is contained in:
ouwou 2024-06-30 16:35:34 -04:00
commit ebce49925c
4 changed files with 35 additions and 0 deletions

3
.gitignore vendored
View File

@ -3,6 +3,9 @@
##
## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore
# Build directory contents
build/*
# User-specific files
*.rsuser
*.suo

7
.lapce/gen_compile_commands.sh Executable file
View File

@ -0,0 +1,7 @@
#!/bin/sh
# Use this script to create the compile_commands.json file.
# This is necessary for clangd completion.
cmake . -B build \
-DCMAKE_BUILD_TYPE=Debug \
-DCMAKE_EXPORT_COMPILE_COMMANDS=True

24
.lapce/run.toml Normal file
View File

@ -0,0 +1,24 @@
# The run config is used for both run mode and debug mode
[[configs]]
name = "cmake-debug"
program = "sh"
args = [".lapce/gen_compile_commands.sh"]
[configs.env]
CC = "/usr/bin/clang"
CXX = "/usr/bin/clang++"
[[configs]]
name = "cmake"
program = "cmake"
args = ["--build", "build"]
[configs.env]
CC = "/usr/bin/clang"
CXX = "/usr/bin/clang++"
[[configs]]
name = "run"
type = "lldb"
program = "build/abaddon"

1
compile_commands.json Symbolic link
View File

@ -0,0 +1 @@
build/compile_commands.json