Skip to content

Commit

Permalink
Fix compilation on MacOS / GHC 8.10.7 (#156)
Browse files Browse the repository at this point in the history
Fixes errors along the lines of:
dear-imgui  > [ 2 of 17] Compiling DearImGui.GLFW
dear-imgui  > error: unknown type name 'constexpr'

So the "-std=c++11" option is not being passed to the C++ compiler on
MacOS.
The issue seems related to haskell/cabal#6421
  • Loading branch information
asivitz authored Aug 30, 2022
1 parent 7795b3d commit dab5937
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dear-imgui.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,10 @@ library
, vector
, text

if os(darwin)
ghc-options:
-optcxx-std=c++11

if flag(disable-obsolete)
cxx-options: -DIMGUI_DISABLE_OBSOLETE_FUNCTIONS

Expand Down

0 comments on commit dab5937

Please sign in to comment.