Adding debug mode to build
jpwidera opened this issue · comments
jpwidera commented
To debug the C/C++-calls and run in gdb a debug mode would be very handsome.
Something like:
if flag(debug)
if os(linux)
ghc-options: -Wall -g -rtsopts -dcore-lint -debug -O0
cc-options: -g -O0 -fsanitize=address -fno-omit-frame-pointer
if os(darwin)
....
if os(windows)
...
Ollie Charles commented
Sounds good to me!
jpwidera commented
As far as I can see, there are no "free" variables in cabal. Therefore this decision tree has to be repeated for each module.
Does anyone know any trick? Otherwise I will create a PR with copy and paste
-sections.
Alexander Bondarenko commented
Alexander Bondarenko commented
@jpwidera Is the issue resolved with compiler flags merged?
jpwidera commented
Yes! :)