Skip to content

Commit

Permalink
very preliminary msvc command line build
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonmoxham committed Oct 27, 2010
1 parent 97e2c4c commit 6f6b4d4
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cl_int.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
@echo off
:: can use x86 or amd64 as param for the below batch file
call "%VS90COMNTOOLS%\..\..\VC\vcvarsall.bat" >nul
echo cl %*
cl %*


30 changes: 30 additions & 0 deletions clwrap
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#!/bin/sh

clopt="/nologo"
prev="none"

while test $# != 0 ; do
case $1 in
-D*)
loc=`echo $1 | cut -b 3-`
clopt="$clopt /D$loc" ;;
-I*)
loc=`echo $1 | cut -b 3-`
clopt="$clopt /I$loc" ;;
-O2) clopt="$clopt /O2" ;;
-c) prev=src ;;
-o) prev=out ;;
*) case $prev in
src)
clopt="$clopt /Tc$1" ;;
out)
clopt="$clopt /Fo$1" ;;
none)
clopt="$clopt $1" ;; # wouldn't normally pass thru
esac
prev="none" ;;
esac
shift
done
cmd /c cl_int.bat $clopt
# probably want to convert / to \ as well

0 comments on commit 6f6b4d4

Please sign in to comment.