Skip to content

Commit

Permalink
waf: fixed cygwin build
Browse files Browse the repository at this point in the history
  • Loading branch information
tridge committed May 27, 2024
1 parent 1bd1d05 commit c02646f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Tools/ardupilotwaf/toolchain.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,10 @@ def configure(cfg):
cfg.find_program('%s-ar' % cfg.env.TOOLCHAIN, var='AR', quiet=True)
cfg.load('compiler_cxx compiler_c')

cfg.find_program('%s-nm' % cfg.env.TOOLCHAIN, var='NM')
if sys.platform.startswith("cygwin"):
cfg.find_program('nm', var='NM')
else:
cfg.find_program('%s-nm' % cfg.env.TOOLCHAIN, var='NM')

if not cfg.options.disable_gccdeps:
cfg.load('gccdeps')
Expand Down

0 comments on commit c02646f

Please sign in to comment.