Skip to content

Commit

Permalink
Force -fllvm for macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
swamp-agr committed May 20, 2024
1 parent 75bb9df commit 8528cfc
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
4 changes: 4 additions & 0 deletions telegram-bot-api/telegram-bot-api.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,10 @@ library
hs-source-dirs:
src
ghc-options: -Wall

if os(darwin)
ghc-options: -fllvm

build-depends:
aeson
, aeson-pretty
Expand Down
20 changes: 20 additions & 0 deletions telegram-bot-simple/telegram-bot-simple.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ library
hs-source-dirs:
src
ghc-options: -Wall

if os(darwin)
ghc-options: -fllvm

build-depends:
aeson
, aeson-pretty
Expand Down Expand Up @@ -84,6 +88,10 @@ executable example-echo-bot
other-modules:
Paths_telegram_bot_simple
ghc-options: -Wall -threaded -rtsopts -with-rtsopts=-N

if os(darwin)
ghc-options: -fllvm

build-depends:
aeson
, aeson-pretty
Expand Down Expand Up @@ -126,6 +134,10 @@ executable example-echo-bot-webhook
other-modules:
Paths_telegram_bot_simple
ghc-options: -Wall -threaded -rtsopts -with-rtsopts=-N

if os(darwin)
ghc-options: -fllvm

build-depends:
aeson
, aeson-pretty
Expand Down Expand Up @@ -168,6 +180,10 @@ executable example-game-bot
other-modules:
Paths_telegram_bot_simple
ghc-options: -Wall -threaded -rtsopts -with-rtsopts=-N

if os(darwin)
ghc-options: -fllvm

build-depends:
aeson
, aeson-pretty
Expand Down Expand Up @@ -223,6 +239,10 @@ executable example-todo-bot
other-modules:
Paths_telegram_bot_simple
ghc-options: -Wall -threaded -rtsopts -with-rtsopts=-N

if os(darwin)
ghc-options: -fllvm

build-depends:
aeson
, aeson-pretty
Expand Down

0 comments on commit 8528cfc

Please sign in to comment.