Skip to content

Commit

Permalink
Update flag
Browse files Browse the repository at this point in the history
  • Loading branch information
psibi committed Jun 28, 2020
1 parent f920581 commit b208484
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ executables:
main: Main.hs
source-dirs: app
when:
- condition: flag(static)
- condition: flag(static) && os(linux)
then:
ld-options: -static
ghc-options: "-rtsopts -threaded -optc-Os -optl=-pthread -optl=-static -fPIC"
Expand Down
4 changes: 2 additions & 2 deletions tldr.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ cabal-version: 1.12
--
-- see: https://github.com/sol/hpack
--
-- hash: 8f9fa686eb8658f3955ad1bf70b3d881c3d6675b2153569a538882bc700eaad6
-- hash: 88d378cdcf8422ec2651e3d350ffcb2f0a4f7a46dce43516286864b209522d78

name: tldr
version: 0.7.0
Expand Down Expand Up @@ -69,7 +69,7 @@ executable tldr
, semigroups
, tldr
, typed-process
if flag(static)
if flag(static) && os(linux)
ghc-options: -rtsopts -threaded -optc-Os -optl=-pthread -optl=-static -fPIC
ld-options: -static
else
Expand Down

0 comments on commit b208484

Please sign in to comment.