Skip to content

Commit

Permalink
Link against system-cxx-std-lib for GHC 9.4+ (#197)
Browse files Browse the repository at this point in the history
* Link against system-cxx-std-lib for GHC 9.4+

* Drop OS checks for linking with stdc++ when GHC < 9.4
  • Loading branch information
jship authored Feb 23, 2024
1 parent f6cad45 commit b48ef79
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions dear-imgui.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,10 @@ library
imgui/imgui_draw.cpp
imgui/imgui_tables.cpp
imgui/imgui_widgets.cpp
extra-libraries:
stdc++
if impl(ghc >= 9.4)
build-depends: system-cxx-std-lib
else
extra-libraries: stdc++
include-dirs:
imgui
build-depends:
Expand Down

0 comments on commit b48ef79

Please sign in to comment.