common/autoconf/toolchain_windows.m4
changeset 23432 f8964bac59db
parent 23429 fe4f0848a307
child 25882 bd4315f0084b
--- a/common/autoconf/toolchain_windows.m4	Tue Apr 01 17:25:15 2014 -0700
+++ b/common/autoconf/toolchain_windows.m4	Fri Apr 04 17:10:44 2014 +0200
@@ -211,6 +211,9 @@
       VCINSTALLDIR=`$ECHO "$VCINSTALLDIR" | $SED 's/\\\\* *$//'`
       WindowsSDKDir=`$ECHO "$WindowsSDKDir" | $SED 's/\\\\* *$//'`
       WINDOWSSDKDIR=`$ECHO "$WINDOWSSDKDIR" | $SED 's/\\\\* *$//'`
+      # Remove any paths containing # (typically F#) as that messes up make. This
+      # is needed if visual studio was installed with F# support.
+      VS_PATH=`$ECHO "$VS_PATH" | $SED 's/[[^:#]]*#[^:]*://g'`
 
       AC_SUBST(VS_PATH)
       AC_SUBST(VS_INCLUDE)