mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2024-12-28 07:47:35 +03:00
c93d164785
* fbt, vscode: tweaks for cdb generation for clangd * .clangd: updated config * vscode: disabled auto header insertion for clangd * .clangd: updated config, ignoring format warnings * Add sublime text project * vscode: enabled clang-tidy for clangd * clangd: strict include checks for sources only Co-authored-by: あく <alleteam@gmail.com>
16 lines
458 B
Python
16 lines
458 B
Python
def exists():
|
|
return True
|
|
|
|
|
|
def generate(env):
|
|
if env.WhereIs("ccache"):
|
|
env["CCACHE"] = "ccache"
|
|
env["CC_NOCACHE"] = env["CC"]
|
|
env["CC"] = "$CCACHE $CC_NOCACHE"
|
|
# Tricky place: linking is done with CXX
|
|
# Using ccache breaks it
|
|
env["LINK"] = env["CXX"]
|
|
env["CXX_NOCACHE"] = env["CXX"]
|
|
env["CXX"] = "$CCACHE $CXX_NOCACHE"
|
|
env.AppendUnique(COMPILATIONDB_OMIT_BINARIES=["ccache"])
|