# We'll assume cl to start out
prog=cl
# opts specifies the command line to pass to the MSVC program
-clopt="${slash}nologo"
+clopt="${slash}nologo ${slash}FS"
linkopt="${slash}nologo"
# gotparam is 0 if we didn't ever see a param, in which case we show usage()
gotparam=
linkopt="$linkopt ${slash}DEBUG"
;;
+ -O0)
+ clopt="$clopt ${slash}Od ${slash}D_DEBUG"
+ ;;
+
+ -O2)
+ clopt="$clopt ${slash}O2"
+ ;;
+
-L*)
path=`echo "$1" | sed 's/-L//'`
- linkopt="$linkopt ${slash}LIBPATH:\"$path\""
+ linkopt="$linkopt ${slash}LIBPATH:$path"
cl_linkopt="${slash}link ${slash}LIBPATH:\"$path\""
;;
#ignore warnings
;;
+ -Q*)
+ #ignore link warnings
+ ;;
+
+ -fno-strict-aliasing*)
+ #ignore aliasing
+ ;;
+
-isystem)
shift
clopt="$clopt -I$1"
opts=$linkopt
fi
-echo "$prog $opts"
+if test x$V = x1 ; then
+ echo "$prog $opts"
+fi
exec $prog $opts
exit 0