Skip to content

Conversation

@maelvls
Copy link
Contributor

@maelvls maelvls commented Oct 24, 2016

Hi,

Thank you so much for this ocaml binding for minisat. I tweaked it in order to have a linux/windows/mac build that works on the project touist.

Edits for continous integration:

  • removed symlinks of src/solver.h, src/solver.c, src/vec.c
    and replaced them by the actual files; I did that because
    in cygwin, ocamlc wouldn't find solver.h in #include "solver.h".
    I might be mistaken but it's the only thing I found to avoid the
    problem...
  • modified the uint64 typedef that was causing issues in cygwin+ocamlc.
    In fact, the '#ifdef _WIN32' wasn't proper for cygwin builds;
    plus, the uint64 isn't standard, changed to uint64_t.
    See the SO topic here: http://stackoverflow.com/questions/126279
for the case where we instanciate the counter in the for loop
    for(int a; a<10; a++) {}
idiom
In this fix, I check that uint64 hasn't been defined yet using the
ARCH_UINT64_TYPE flag.
@c-cube
Copy link
Owner

c-cube commented Oct 24, 2016

I suppose I have to give access to travis for the CI, is that right?

@c-cube c-cube merged commit 712d1ea into c-cube:master Oct 25, 2016
@maelvls
Copy link
Contributor Author

maelvls commented Oct 26, 2016

Yep! But I didn't actually prepare a .travis-ci.yml, but I could do so if you want!

@c-cube
Copy link
Owner

c-cube commented Oct 26, 2016

If it doesn't bother you, I'd be thankful, yes.

@maelvls
Copy link
Contributor Author

maelvls commented Oct 26, 2016

Done in PR #2! 😀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants