diff options
author | Stefano Pigozzi <stefano.pigozzi@gmail.com> | 2013-11-22 21:30:00 +0100 |
---|---|---|
committer | Stefano Pigozzi <stefano.pigozzi@gmail.com> | 2013-11-26 00:33:40 +0100 |
commit | 58bf7fd1f31f185f8ab89102e8173901ce0f22b5 (patch) | |
tree | c240c7fa41191fede6fc438d54e8e3f752ce85ad /waftools/detections | |
parent | 88099c8617717fab763ca3f5a641831395e8db58 (diff) | |
download | mpv-58bf7fd1f31f185f8ab89102e8173901ce0f22b5.tar.bz2 mpv-58bf7fd1f31f185f8ab89102e8173901ce0f22b5.tar.xz |
build: add -mwin32 on cygwin
Diffstat (limited to 'waftools/detections')
-rw-r--r-- | waftools/detections/compiler.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/waftools/detections/compiler.py b/waftools/detections/compiler.py index bad1da7673..ab658b8ce3 100644 --- a/waftools/detections/compiler.py +++ b/waftools/detections/compiler.py @@ -38,10 +38,14 @@ def __add_mingw_flags__(ctx): ctx.env.CFLAGS += ['-DBIG_ENDIAN=4321'] ctx.env.LAST_LINKFLAGS += ['-mconsole'] +def __add_cygwin_flags__(ctx): + ctx.env.CFLAGS += ['-mwin32'] + __compiler_map__ = { '__GNUC__': __add_gcc_flags__, '__clang__': __add_clang_flags__, '__MINGW32__': __add_mingw_flags__, + '__CYGWIN__': __add_cygwin_flags__, } def __apply_map__(ctx, fnmap): |