You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
693 B
29 lines
693 B
11 months ago
|
AddOption('--minimal',
|
||
|
action='store_false',
|
||
|
dest='extras',
|
||
|
default=True,
|
||
|
help='the minimum build. no tests, tools, etc.')
|
||
|
|
||
|
AddOption('--ubsan',
|
||
|
action='store_true',
|
||
|
help='turn on UBSan')
|
||
|
|
||
|
AddOption('--coverage',
|
||
|
action='store_true',
|
||
|
help='build with test coverage options')
|
||
|
|
||
|
AddOption('--compile_db',
|
||
|
action='store_true',
|
||
|
help='build clang compilation database')
|
||
|
|
||
|
env = Environment(
|
||
|
COMPILATIONDB_USE_ABSPATH=True,
|
||
|
tools=["default", "compilation_db"],
|
||
|
)
|
||
|
|
||
|
if GetOption('compile_db'):
|
||
|
env.CompilationDatabase("compile_commands.json")
|
||
|
|
||
|
# panda fw & test files
|
||
|
SConscript('SConscript')
|