mirror of
https://github.com/Drezil/dear-imgui.hs.git
synced 2024-11-22 08:56:59 +00:00
Fix compilation on MacOS / GHC 8.10.7 (#156)
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 https://github.com/haskell/cabal/issues/6421
This commit is contained in:
parent
7795b3d838
commit
dab5937eee
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user