ocaml-obuild / obuild

simple package build system for ocaml
BSD 2-Clause "Simplified" License
55 stars 20 forks source link

shouldn't --enable-executable-debugging automatically imply --enable-executable-bytecode #151

Closed UnixJunkie closed 6 years ago

UnixJunkie commented 9 years ago

To debug an ocaml executable; i.e. run it under ocamldebug: it needs to be a bytecode exe compiled with debugging information on. It seems that --enable-executable-debugging should automatically turn on --enable-executable-bytecode.

jeromemaloberti commented 9 years ago

Is it really mandatory ? I would think that you can debug with gdb ... Also, how would it work if you have some C bindings while using ocamldebug on the bytecode ?

UnixJunkie commented 9 years ago

Good question. Maybe the right alternative is to have a new flag: --enable-executable-ocamldebug. As a synonym for bytecode+debug.

jeromemaloberti commented 9 years ago

Or just -g, it already exists.

UnixJunkie commented 9 years ago

It's recent I guess, I did not know about it.