waf: set CYGWIN_BUILD on cygwin for px4

helps with missing/cmath
This commit is contained in:
Andrew Tridgell 2018-03-03 13:14:09 +11:00
parent 27e4953ad8
commit b6c0e65dee
1 changed files with 3 additions and 0 deletions

View File

@ -698,6 +698,9 @@ class px4(Board):
'uavcan',
]
if sys.platform == 'cygwin':
env.CXXFLAGS += ['-DCYGWIN_BUILD']
env.ROMFS_EXCLUDE = self.ROMFS_EXCLUDE
env.PX4_BOOTLOADER_NAME = self.bootloader_name