forked from swig/swig
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes for swig builds and tests using MSVC
On windows platforms, with paths set up for MSVC toolchains, this works to build swig and run test suites, assuming "windows" install of boost. ./autogen.sh; ./configure CC='cl' CXX='cl' --with-boost=c:/boost_1_55_0 --without-pcre Also remove -g flag generating annoying swig warnings. May be some more proper autoconf way to do this.
- Loading branch information
1 parent
d55692c
commit 900cf4d
Showing
2 changed files
with
30 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,8 @@ | |
builddir=`dirname $0` | ||
srcdir=`cd "$builddir" && cd '@srcdir@' && pwd` | ||
SWIG_LIB=$srcdir/Lib | ||
#SWIG_LIB=`cygpath -w $srcdir/Lib` # For native Windows version of SWIG | ||
# For native Windows version of SWIG | ||
"$builddir/swig" -version 2>&1 | \ | ||
grep -i 'compiled with' | grep -i -e ' cl ' -e ' cl.exe ' && SWIG_LIB=`cygpath -w $srcdir/Lib` | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
marvingreenberg
Author
Owner
|
||
export SWIG_LIB | ||
exec "$builddir/swig" $* |
Couldn't we just do
here, as usual? It would be slightly less cryptic IMHO.