File tree Expand file tree Collapse file tree 2 files changed +30
-1
lines changed Expand file tree Collapse file tree 2 files changed +30
-1
lines changed Original file line number Diff line number Diff line change 1+ PREFIX=" x86_64-w64-mingw32-"
2+ export CC=${PREFIX} gcc
3+ export FC=${PREFIX} gfortran
4+ export CXX=${PREFIX} c++
5+ export LD=${PREFIX} ld
6+ export AR=${PREFIX} ar
7+ export AS=${PREFIX} as
8+ export NM=${PREFIX} nm
9+ export STRIP=${PREFIX} strip
10+ export RANLIB=${PREFIX} ranlib
11+ export DLLTOOL=${PREFIX} dlltool
12+ export OBJDUMP=${PREFIX} objdump
13+ export RESCOMP=${PREFIX} windres
14+ export MINGWROOT=/usr/x86_64-w64-mingw32/
15+
16+ export CXXFLAGS=" -Ofast -fPIC -flto -m64 -DNDEBUG -fprefetch-loop-arrays -static"
17+ export CFLAGS=" -Ofast -fPIC -flto -m64 -DNDEBUG -fprefetch-loop-arrays -static"
18+ export FCFLAGS=" -Ofast -fPIC -flto -m64 -DNDEBUG -fprefetch-loop-arrays -static"
19+ export F77FLAGS=" -Ofast -fPIC -flto -m64 -DNDEBUG -fprefetch-loop-arrays -static"
20+ export LDFLAGS=" -Ofast -static -fPIC -flto -m64 -Bstatic -lgfortran -static-libgcc -static-libgfortran -static-libstdc++"
21+
22+ cd ~ /src/cbctrunk/
23+
24+ $( CXX) \
25+ -I/opt/w64/include/coin/ -L/opt/w64/lib/coin/ \
26+ -I${MINGWROOT} /include/ $( CXXFLAGS) \
27+ -mdll -shared -DCBC_THREAD ~ /src/cbctrunk/Cbc/src/Cbc_C_Interface.cpp $( LDFLAGS) \
28+ -o ~ /git/mip/mip/libraries/cbc-c-windows-x86-64.dll
29+
Original file line number Diff line number Diff line change @@ -117,7 +117,7 @@ def test_tsp(solver: str):
117117 Aout = {n : [a for a in A if a [0 ] == n ] for n in N }
118118 Ain = {n : [a for a in A if a [1 ] == n ] for n in N }
119119 m = Model (solver_name = solver )
120- m .verbose = 0
120+ m .verbose = 1
121121
122122 x = {a : m .add_var (name = 'x({},{})' .format (a [0 ], a [1 ]),
123123 var_type = BINARY ) for a in A }
You can’t perform that action at this time.
0 commit comments