Skip to content

Commit 7aed7c4

Browse files
committed
Force GHC to pass defines to C++
1 parent e2719a1 commit 7aed7c4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

dear-imgui.cabal

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

204204
if flag(disable-obsolete)
205+
ghc-options: -optcxx-DIMGUI_DISABLE_OBSOLETE_FUNCTIONS
205206
cxx-options: -DIMGUI_DISABLE_OBSOLETE_FUNCTIONS
206207

207208
if flag(use-wchar32)
208209
cxx-options: -DIMGUI_USE_WCHAR32
209210
cpp-options: -DIMGUI_USE_WCHAR32
211+
if impl(ghc >= 9.10)
212+
ghc-options: -optcxx-DIMGUI_USE_WCHAR32
210213

211214
if flag(use-ImDrawIdx32)
212215
cxx-options: "-DImDrawIdx=unsigned int"

0 commit comments

Comments
 (0)