Skip to content

Commit

Permalink
waf: define CYGWIN_BUILD for ChibiOS under cygwin
Browse files Browse the repository at this point in the history
and for SITL
  • Loading branch information
tridge committed Mar 2, 2018
1 parent 403ba0c commit 706a0c1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Tools/ardupilotwaf/boards.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,7 @@ def configure_env(self, cfg, env):
env.LIB += [
'winmm',
]
env.CXXFLAGS += ['-DCYGWIN_BUILD']


if 'clang++' in cfg.env.COMPILER_CXX:
Expand Down Expand Up @@ -346,6 +347,9 @@ def configure_env(self, cfg, env):
'-mfloat-abi=hard'
]

if sys.platform == 'cygwin':
env.CXXFLAGS += ['-DCYGWIN_BUILD']

bldnode = cfg.bldnode.make_node(self.name)
env.BUILDROOT = bldnode.make_node('').abspath()

Expand Down

0 comments on commit 706a0c1

Please sign in to comment.