setup clang tidy (#19533)
* setup clang tidy * config * some cleanup * little more * remove that * fix qcom build old-commit-hash: 87950eb3127e175f0f2b0bb42440f5350c679369
This commit is contained in:
@@ -21,6 +21,10 @@ AddOption('--clazy',
|
||||
action='store_true',
|
||||
help='build with clazy')
|
||||
|
||||
AddOption('--compile_db',
|
||||
action='store_true',
|
||||
help='build clang compilation database')
|
||||
|
||||
real_arch = arch = subprocess.check_output(["uname", "-m"], encoding='utf8').rstrip()
|
||||
if platform.system() == "Darwin":
|
||||
arch = "Darwin"
|
||||
@@ -186,7 +190,7 @@ env = Environment(
|
||||
tools=["default", "cython", "compilation_db"],
|
||||
)
|
||||
|
||||
if GetOption('test'):
|
||||
if GetOption('compile_db'):
|
||||
env.CompilationDatabase('compile_commands.json')
|
||||
|
||||
if os.environ.get('SCONS_CACHE'):
|
||||
|
||||
Reference in New Issue
Block a user