diff options
author | stijn <stijn@ignitron.net> | 2016-08-10 10:19:16 +0200 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2017-05-03 10:37:51 +1000 |
commit | 5b57ae985ff7064dd7b09b0ce891697bfaa5dae2 (patch) | |
tree | cb080f759cee7758045aa1031164b2d6010d21a5 /extmod/moduhashlib.c | |
parent | 7d4ba9d257865548e402e65033ac9c72307b6983 (diff) | |
download | micropython-5b57ae985ff7064dd7b09b0ce891697bfaa5dae2.tar.gz micropython-5b57ae985ff7064dd7b09b0ce891697bfaa5dae2.zip |
mpy-cross: Fix compiler detection for including windows/fmode.c
fmode.c should only be included for builds targetting 'pure' windows, i.e.
msvc or mingw builds but not when using msys or cygwin's gcc (see #2298).
Just checking if the OS is windows and UNAME doesn't have msys stil leaves
the gate open for builds with cygwin's gcc since UNAME there is e.g.
CYGWIN_NT-6.1-WOW.
Fix this by checking for 'mingw' explicitly in the compiler version; both
gcc and clang have the -dumpmachine flag so the check should be ok for
all platforms.
Diffstat (limited to 'extmod/moduhashlib.c')
0 files changed, 0 insertions, 0 deletions