Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JBuilder doesn't relink exe file on macOS #245

Closed
artemkin opened this issue Sep 1, 2017 · 2 comments
Closed

JBuilder doesn't relink exe file on macOS #245

artemkin opened this issue Sep 1, 2017 · 2 comments

Comments

@artemkin
Copy link

artemkin commented Sep 1, 2017

$ cat jbuild
(jbuild_version 1)

(executable
 ((name hello)))
$ echo 'let () = print_endline "Hello"' > hello.ml
$ jbuilder build hello.exe
    ocamldep hello.depends.ocamldep-output
      ocamlc hello.{cmi,cmo,cmt}
    ocamlopt hello.{cmx,o}
    ocamlopt hello.exe
$ ./_build/default/hello.exe
Hello
$ echo 'let () = print_endline "World"' > hello.ml
$ jbuilder build hello.exe
    ocamldep hello.depends.ocamldep-output
      ocamlc hello.{cmi,cmo,cmt}
    ocamlopt hello.{cmx,o}
$ ./_build/default/hello.exe
Hello
$ jbuilder clean
$ jbuilder build hello.exe
    ocamldep hello.depends.ocamldep-output
      ocamlc hello.{cmi,cmo,cmt}
    ocamlopt hello.{cmx,o}
    ocamlopt hello.exe
$ ./_build/default/hello.exe
World

Need to run jbuilder clean to get hello.exe updated. Experiencing this issue on macOS Sierra 10.12.5.

$ ocaml --version
The OCaml toplevel, version 4.05.0
$ opam --version
1.2.2
$ opam info jbuilder | grep "installed-version"
   installed-version: 1.0+beta12 [system]
@rdavison
Copy link
Contributor

rdavison commented Sep 1, 2017

I think this issue would be fixed by this Pull Request, if I'm not mistaken: #238

@rgrinberg
Copy link
Member

Yup this is a duplicate of #237

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants