Skip to content

Commit

Permalink
waf: add support for generating compile_commands.json
Browse files Browse the repository at this point in the history
  • Loading branch information
bugobliterator committed Jun 5, 2024
1 parent a567116 commit df9a4c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Tools/ardupilotwaf/toolchain.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def configure(cfg):
cfg.msg('Using toolchain', cfg.env.TOOLCHAIN)

if cfg.env.TOOLCHAIN == 'native':
cfg.load('compiler_cxx compiler_c')
cfg.load('compiler_cxx compiler_c clang_compilation_database')

if not cfg.options.disable_gccdeps:
cfg.load('gccdeps')
Expand All @@ -148,7 +148,7 @@ def configure(cfg):
cfg.find_program('ar', var='AR', quiet=True)
else:
cfg.find_program('%s-ar' % cfg.env.TOOLCHAIN, var='AR', quiet=True)
cfg.load('compiler_cxx compiler_c')
cfg.load('compiler_cxx compiler_c clang_compilation_database')

if sys.platform.startswith("cygwin"):
cfg.find_program('nm', var='NM')
Expand Down

0 comments on commit df9a4c8

Please sign in to comment.