Skip to content

Commit b48ef79

Browse files
authored
Link against system-cxx-std-lib for GHC 9.4+ (#197)
* Link against system-cxx-std-lib for GHC 9.4+ * Drop OS checks for linking with stdc++ when GHC < 9.4
1 parent f6cad45 commit b48ef79

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

dear-imgui.cabal

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,8 +179,10 @@ library
179179
imgui/imgui_draw.cpp
180180
imgui/imgui_tables.cpp
181181
imgui/imgui_widgets.cpp
182-
extra-libraries:
183-
stdc++
182+
if impl(ghc >= 9.4)
183+
build-depends: system-cxx-std-lib
184+
else
185+
extra-libraries: stdc++
184186
include-dirs:
185187
imgui
186188
build-depends:

0 commit comments

Comments
 (0)