From 7de64141e34cdf281f7b23b637cbaa416202ad7b Mon Sep 17 00:00:00 2001 From: Bill Ladwig Date: Tue, 28 Feb 2017 15:18:29 -0700 Subject: [PATCH] Added additional fortran compiler flags to the command lines. Hopefully Windows will run a little faster. --- conda_recipe/bld.bat | 8 +++++++- conda_recipe/build.sh | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/conda_recipe/bld.bat b/conda_recipe/bld.bat index c96ac4c..cedde2c 100644 --- a/conda_recipe/bld.bat +++ b/conda_recipe/bld.bat @@ -1,2 +1,8 @@ -python setup.py build --compiler=mingw32 --fcompiler=gnu95 install --single-version-externally-managed --record=record.txt + +%ARCH% == 64 ( + %PYTHON% setup.py config_fc --f90flags="-O2 -mtune=generic -mfpmath=sse -msse2" build --compiler=mingw32 --fcompiler=gnu95 +) else ( + %PYTHON% setup.py config_fc --f90flags="-O2 -mtune=generic -mfpmath=sse -msse2 -mincoming-stack-boundary=2" build --compiler=mingw32 --fcompiler=gnu95 +) +%PYTHON% setup.py install --single-version-externally-managed --record=record.txt diff --git a/conda_recipe/build.sh b/conda_recipe/build.sh index acabc43..9ae7b95 100644 --- a/conda_recipe/build.sh +++ b/conda_recipe/build.sh @@ -4,7 +4,7 @@ if [ `uname` == Darwin ]; then LDFLAGS="$LDFLAGS -undefined dynamic_lookup -bundle" fi -$PYTHON setup.py build +$PYTHON setup.py config_fc --f90flags="-mtune=generic -mfpmath=sse" build $PYTHON setup.py install --single-version-externally-managed --record=record.txt