haskell-game / dear-imgui.hs

Haskell bindings to Dear ImGui, an immediate mode GUI toolkit

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Adding debug mode to build

jpwidera opened this issue · comments

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)
   ...

Sounds good to me!

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.

@jpwidera Is the issue resolved with compiler flags merged?

Yes! :)