8009315: F# on PATH breaks Cygwin tools (mkdir, echo, mktemp ...)

Reviewed-by: erikj
This commit is contained in:
Tim Bell 2013-07-09 08:35:20 -07:00
parent 36a8e30316
commit da494c8bc9
2 changed files with 260 additions and 233 deletions

File diff suppressed because it is too large Load Diff

@ -208,6 +208,8 @@ AC_DEFUN([TOOLCHAIN_SETUP_VISUAL_STUDIO_ENV],
# Remove any trailing \ from INCLUDE and LIB to avoid trouble in spec.gmk.
VS_INCLUDE=`$ECHO "$INCLUDE" | $SED 's/\\\\$//'`
VS_LIB=`$ECHO "$LIB" | $SED 's/\\\\$//'`
# Remove any paths containing # (typically F#) as that messes up make
PATH=`$ECHO "$PATH" | $SED 's/[[^:#]]*#[^:]*://g'`
VS_PATH="$PATH"
AC_SUBST(VS_INCLUDE)
AC_SUBST(VS_LIB)