Feat: compiledb is now used (more) dynamically

This commit is contained in:
Johannes Hendrik Gerard van der Weide 2025-07-24 14:46:03 +00:00
parent 6f11ca2a48
commit 10ec9bb2bf
2 changed files with 6 additions and 2 deletions

2
.gitignore vendored
View file

@ -15,6 +15,8 @@ build.zip
*.o
compile_commands.json
.tree.hash
.cache
.kdev4
*.kdev4
*__pycache__

View file

@ -1,10 +1,12 @@
set export
BUILD_NAME := "change_me"
tree_hash := `tree ./modules | md5sum`
compiledb := if tree_hash == `cat .tree.hash` { "no" } else { "yes" }
build: format
# Compiling Editor
cd engine/ && scons target=editor symbols=yes optimization=debug dev_build=yes linker=mold use_llvm=yes compiledb=yes custom_modules="../modules"
cd engine/ && scons target=editor symbols=yes optimization=debug dev_build=yes linker=mold use_llvm=yes compiledb={{compiledb}} custom_modules="../modules"
run: build
# Running Editor