mirror of
https://github.com/infiniteCable2/panda.git
synced 2026-02-18 09:13:52 +08:00
Add support for generating clang compilation database by default (#2225)
compilation db by default
This commit is contained in:
@@ -8,17 +8,12 @@ AddOption('--ubsan',
|
|||||||
action='store_true',
|
action='store_true',
|
||||||
help='turn on UBSan')
|
help='turn on UBSan')
|
||||||
|
|
||||||
AddOption('--compile_db',
|
|
||||||
action='store_true',
|
|
||||||
help='build clang compilation database')
|
|
||||||
|
|
||||||
env = Environment(
|
env = Environment(
|
||||||
COMPILATIONDB_USE_ABSPATH=True,
|
COMPILATIONDB_USE_ABSPATH=True,
|
||||||
tools=["default", "compilation_db"],
|
tools=["default", "compilation_db"],
|
||||||
)
|
)
|
||||||
|
|
||||||
if GetOption('compile_db'):
|
env.CompilationDatabase("compile_commands.json")
|
||||||
env.CompilationDatabase("compile_commands.json")
|
|
||||||
|
|
||||||
# panda fw & test files
|
# panda fw & test files
|
||||||
SConscript('SConscript')
|
SConscript('SConscript')
|
||||||
|
|||||||
Reference in New Issue
Block a user