2007 02/27, Naoshi Tabuch: tabee@jp.ibm.com

Build script for native code.
On cygwin platforms, VC++/Platform SDK setup scripts are invoked first.

# moved from CAst.PHP project (yet unpublished)

git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@798 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
This commit is contained in:
tabee 2007-02-27 14:53:46 +00:00
parent 6f7e4c5b7d
commit 75ac0b79c8
1 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,12 @@
#!/bin/bash
if (uname | grep -i "cygwin"); then
# This should be the default for most of cases;
# adjust to your environment if necessary.
MSVC="C:\Program Files\Microsoft Visual Studio 8\VC"
ARCH=x86
cmd.exe /c "call \"$MSVC\\vcvarsall.bat\" $ARCH && make"
else
make
fi