From 5eb2822d25dda2bab31fc9425e166da5c236317d Mon Sep 17 00:00:00 2001 From: Evgeny Poberezkin <2769109+epoberezkin@users.noreply.github.com> Date: Thu, 21 Apr 2022 15:16:18 +0100 Subject: [PATCH] use cpp-options --- package.yaml | 2 +- simplexmq.cabal | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.yaml b/package.yaml index c67d6a071..b1a776be2 100644 --- a/package.yaml +++ b/package.yaml @@ -72,7 +72,7 @@ flags: when: - condition: flag(swift) - ghc-options: + cpp-options: - -DswiftJSON library: diff --git a/simplexmq.cabal b/simplexmq.cabal index c27390aaa..d43a8387d 100644 --- a/simplexmq.cabal +++ b/simplexmq.cabal @@ -116,7 +116,7 @@ library , x509-store ==1.6.* , x509-validation ==1.6.* if flag(swift) - ghc-options: -DswiftJSON + cpp-options: -DswiftJSON default-language: Haskell2010 executable smp-agent @@ -170,7 +170,7 @@ executable smp-agent , x509-store ==1.6.* , x509-validation ==1.6.* if flag(swift) - ghc-options: -DswiftJSON + cpp-options: -DswiftJSON default-language: Haskell2010 executable smp-server @@ -227,7 +227,7 @@ executable smp-server , x509-store ==1.6.* , x509-validation ==1.6.* if flag(swift) - ghc-options: -DswiftJSON + cpp-options: -DswiftJSON default-language: Haskell2010 test-suite smp-server-test @@ -297,5 +297,5 @@ test-suite smp-server-test , x509-store ==1.6.* , x509-validation ==1.6.* if flag(swift) - ghc-options: -DswiftJSON + cpp-options: -DswiftJSON default-language: Haskell2010