Skip to content

Commit 9b44f7e

Browse files
committed
Force GHC to pass defines to C++
1 parent e2719a1 commit 9b44f7e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

dear-imgui.cabal

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,9 +202,14 @@ library
202202
-optcxx-std=c++11
203203

204204
if flag(disable-obsolete)
205+
if impl(ghc >= 9.10)
206+
ghc-options: -optcxx-DIMGUI_DISABLE_OBSOLETE_FUNCTIONS
205207
cxx-options: -DIMGUI_DISABLE_OBSOLETE_FUNCTIONS
208+
cpp-options: -DIMGUI_DISABLE_OBSOLETE_FUNCTIONS
206209

207210
if flag(use-wchar32)
211+
if impl(ghc >= 9.10)
212+
ghc-options: -optcxx-DIMGUI_USE_WCHAR32
208213
cxx-options: -DIMGUI_USE_WCHAR32
209214
cpp-options: -DIMGUI_USE_WCHAR32
210215

0 commit comments

Comments
 (0)