Feat: compiledb is now used (more) dynamically
This commit is contained in:
parent
6f11ca2a48
commit
10ec9bb2bf
4
.gitignore
vendored
4
.gitignore
vendored
|
@ -15,6 +15,8 @@ build.zip
|
|||
|
||||
*.o
|
||||
compile_commands.json
|
||||
.tree.hash
|
||||
.cache
|
||||
.kdev4
|
||||
*.kdev4
|
||||
*.kdev4
|
||||
*__pycache__
|
||||
|
|
4
justfile
4
justfile
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue