dune 621 B

123456789101112131415161718192021222324252627282930
  1. ;; https://discuss.ocaml.org/t/dune-how-to-link-statically-on-linux-not-on-others/8537/4?u=mro
  2. (rule
  3. (with-stdout-to
  4. flags.sexp
  5. (run sh %{dep:gen_flags.sh})))
  6. (rule
  7. (with-stdout-to
  8. version.ml
  9. (run echo "let dune_project_num = \"%{version:geohash}\"")))
  10. (rule
  11. (target res.ml)
  12. (deps
  13. (source_tree ../res))
  14. (action
  15. (with-stdout-to
  16. %{target}
  17. (run ocaml-crunch --mode=plain ../res))))
  18. ; https://stackoverflow.com/a/53325230/349514
  19. (executable
  20. (name main)
  21. (libraries lib geohash tyre)
  22. ; https://discuss.ocaml.org/t/ld-error-missing-note-gnu-stack-section/12478/2
  23. (flags
  24. (:include flags.sexp)))