diff --git a/package.yaml b/package.yaml index e8cf3454e..79288a20c 100644 --- a/package.yaml +++ b/package.yaml @@ -90,7 +90,9 @@ executables: extra-libraries: c++ ld-options: -Wl,-keep_dwarf_unwind ghc-options: -fcompact-unwind - - condition: os(windows) + - condition: os(windows) && impl(ghc >= 9.4) + build-depends: system-cxx-std-lib + - condition: os(windows) && impl(ghc < 9.4) extra-libraries: stdc++ tests: @@ -114,7 +116,9 @@ tests: extra-libraries: c++ ld-options: -Wl,-keep_dwarf_unwind ghc-options: -fcompact-unwind - - condition: os(windows) + - condition: os(windows) && impl(ghc >= 9.4) + build-depends: system-cxx-std-lib + - condition: os(windows) && impl(ghc < 9.4) extra-libraries: stdc++ flags: