ocaml-mccs
ocaml-mccs copied to clipboard
Switch selection of GLPK to Dune virtual libraries
This is a continuation of the work in #22 to make the vendored GLPK completely separate from the forked MCCS. This takes advantage of the Dune virtual libraries introduced in version 1.7 of the language (the implementation details for MCCS mean that Dune 1.9.2 or later is required).
Various notes:
- The shared and static variants are built by default - if you don't have GLPK installed, then
src/glpk-static/duneandsrc/glpk-shared/dunemust be blown away before the build (seemccs.opamand the temporary steps inappveyor.yml) - I have done some work previously on manually compiling glpk for Windows - at some point in the coming months I'll dust it off and push it so that AppVeyor can test all three builds too
- I use the
default_implementationfield to mean thatopamcarries on using the internal solver by default - downstream builds such as Debian can in future altersrc/solver/dunein opam to changemccstomccs.shared. - The
context_flags.mlandcontext_flags_all.mlshould be merged and tidied up. The git diff appears to have got thoroughly confused by the renaming - they're basically unchanged!
Any plan to continue this?