Skip to content
This repository has been archived by the owner on Dec 14, 2020. It is now read-only.

Commit

Permalink
Fix build from source with Clang (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
jgoldfar authored and tkelman committed Mar 2, 2018
1 parent 0377dad commit 6b85bd6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions deps/build.jl
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ provides(SimpleBuild,
@build_steps begin
ChangeDirectory(builddir)
pipeline(`cat $patchdir/os-printlevel.patch`, `patch -p1 -d ..`)
pipeline(`cat $patchdir/ordered-compare-error.patch`, `patch -p1 -d ..`)
setenv(`../configure --prefix=$prefix --enable-dependency-linking
coin_skip_warn_cflags=yes coin_skip_warn_cxxflags=yes coin_skip_warn_fflags=yes
--with-coinutils-lib="-L$cbclibdir -lCoinUtils"
Expand Down
11 changes: 11 additions & 0 deletions deps/ordered-compare-error.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- /SYMPHONY/src/LP/lp_genfunc.c 2015-03-07 15:52:32.000000000 -0500
+++ /SYMPHONY/src/LP/lp_genfunc.c 2017-11-14 10:03:57.000000000 -0500
@@ -2419,7 +2419,7 @@
send_to_pool);

should_stop_adding_cgl_cuts(p, i, &should_stop);
- if(i < 0 && num_cuts > 0) should_stop = TRUE;
+ if(i < 0 && *num_cuts > 0) should_stop = TRUE;
//}
if (should_stop == TRUE) {
break;

0 comments on commit 6b85bd6

Please sign in to comment.