From b48ef7904b10fe467b07088c452b6a64c1791409 Mon Sep 17 00:00:00 2001 From: Jason Shipman Date: Fri, 23 Feb 2024 07:43:53 -0500 Subject: [PATCH] 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 --- dear-imgui.cabal | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/dear-imgui.cabal b/dear-imgui.cabal index a445b03..def7e17 100644 --- a/dear-imgui.cabal +++ b/dear-imgui.cabal @@ -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: