adamgreen/gcc4mbed

win_install fails if Cygwin is in the path

Closed this issue · 1 comments

Users are seeing the following error text if they attempt to run win_install.cmd when they have Cygwin in their path:
win32\applydiff --binary -p1 <mbed.patch
/usr/bin/sh: win32applydiff: command not found
cs-make: *** [patch_mbed] Error 127

This is caused by the fact that cs-make attempts to use the /usr/bin/sh shell from Cygwin if it exists and only if it isn't found in the path does it drop back to cmd.exe on Windows. My makefiles assume that the user hasn't previously installed Cygwin so were written to work with cmd.exe on Windows. I just need to add a SHELL=cmd.exe to my makefiles to correct this on Windows. Will try to fix and push up to github by EOD.