Skip to content
This repository has been archived by the owner on Aug 18, 2020. It is now read-only.

Commit

Permalink
[CSL-1002] Add linker speed ups conditionals
Browse files Browse the repository at this point in the history
  • Loading branch information
chshersh committed Apr 11, 2017
1 parent f5ec96b commit f8ea767
Showing 1 changed file with 144 additions and 32 deletions.
176 changes: 144 additions & 32 deletions cardano-sl.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -512,8 +512,15 @@ library
ghc-options: -Wall
-fno-warn-orphans
-O2
-optl-fuse-ld=gold
ld-options: -fuse-ld=gold

-- linker speed ups for linux and macOS
if os(linux)
ghc-options: -optl-fuse-ld=gold
ld-options: -fuse-ld=gold
if os(darwin)
ghc-options: "-pgmP clang" "-pgmc clang" "-pgma clang" "-pgml clang" "-optl-fuse-ld=lld"
ld-options: -fuse-ld=lld

default-extensions: DeriveDataTypeable
DeriveGeneric
GeneralizedNewtypeDeriving
Expand Down Expand Up @@ -574,8 +581,15 @@ executable cardano-node
-fno-warn-orphans
-with-rtsopts=-N
-O2
-optl-fuse-ld=gold
ld-options: -fuse-ld=gold

-- linker speed ups for linux and macOS
if os(linux)
ghc-options: -optl-fuse-ld=gold
ld-options: -fuse-ld=gold
if os(darwin)
ghc-options: "-pgmP clang" "-pgmc clang" "-pgma clang" "-pgml clang"
ld-options: -fuse-ld=lld

default-extensions: DeriveDataTypeable
DeriveGeneric
GeneralizedNewtypeDeriving
Expand Down Expand Up @@ -627,8 +641,15 @@ executable cardano-analyzer
-fno-warn-orphans
-with-rtsopts=-N
-O2
-optl-fuse-ld=gold
ld-options: -fuse-ld=gold

-- linker speed ups for linux and macOS
if os(linux)
ghc-options: -optl-fuse-ld=gold
ld-options: -fuse-ld=gold
if os(darwin)
ghc-options: "-pgmP clang" "-pgmc clang" "-pgma clang" "-pgml clang"
ld-options: -fuse-ld=lld

default-extensions: DeriveDataTypeable
DeriveGeneric
GeneralizedNewtypeDeriving
Expand Down Expand Up @@ -686,8 +707,15 @@ executable cardano-wallet
-fno-warn-orphans
-with-rtsopts=-N
-O2
-optl-fuse-ld=gold
ld-options: -fuse-ld=gold

-- linker speed ups for linux and macOS
if os(linux)
ghc-options: -optl-fuse-ld=gold
ld-options: -fuse-ld=gold
if os(darwin)
ghc-options: "-pgmP clang" "-pgmc clang" "-pgma clang" "-pgml clang"
ld-options: -fuse-ld=lld

default-extensions: DeriveDataTypeable
DeriveGeneric
GeneralizedNewtypeDeriving
Expand Down Expand Up @@ -735,8 +763,15 @@ executable cardano-wallet-hs2purs
-fno-warn-orphans
-with-rtsopts=-N
-O2
-optl-fuse-ld=gold
ld-options: -fuse-ld=gold

-- linker speed ups for linux and macOS
if os(linux)
ghc-options: -optl-fuse-ld=gold
ld-options: -fuse-ld=gold
if os(darwin)
ghc-options: "-pgmP clang" "-pgmc clang" "-pgma clang" "-pgml clang"
ld-options: -fuse-ld=lld

default-extensions: DeriveDataTypeable
DeriveGeneric
GeneralizedNewtypeDeriving
Expand Down Expand Up @@ -808,8 +843,15 @@ executable cardano-smart-generator
-fno-warn-orphans
-with-rtsopts=-N
-O2
-optl-fuse-ld=gold
ld-options: -fuse-ld=gold

-- linker speed ups for linux and macOS
if os(linux)
ghc-options: -optl-fuse-ld=gold
ld-options: -fuse-ld=gold
if os(darwin)
ghc-options: "-pgmP clang" "-pgmc clang" "-pgma clang" "-pgml clang"
ld-options: -fuse-ld=lld

default-extensions: DeriveDataTypeable
DeriveGeneric
GeneralizedNewtypeDeriving
Expand Down Expand Up @@ -870,8 +912,15 @@ executable cardano-dht-keygen
-fno-warn-orphans
-with-rtsopts=-N
-O2
-optl-fuse-ld=gold
ld-options: -fuse-ld=gold

-- linker speed ups for linux and macOS
if os(linux)
ghc-options: -optl-fuse-ld=gold
ld-options: -fuse-ld=gold
if os(darwin)
ghc-options: "-pgmP clang" "-pgmc clang" "-pgma clang" "-pgml clang"
ld-options: -fuse-ld=lld

default-extensions: DeriveDataTypeable
DeriveGeneric
GeneralizedNewtypeDeriving
Expand Down Expand Up @@ -906,8 +955,15 @@ executable cardano-web-docs
-fno-warn-orphans
-with-rtsopts=-N
-O2
-optl-fuse-ld=gold
ld-options: -fuse-ld=gold

-- linker speed ups for linux and macOS
if os(linux)
ghc-options: -optl-fuse-ld=gold
ld-options: -fuse-ld=gold
if os(darwin)
ghc-options: "-pgmP clang" "-pgmc clang" "-pgma clang" "-pgml clang"
ld-options: -fuse-ld=lld

default-extensions: DeriveDataTypeable
DeriveGeneric
GeneralizedNewtypeDeriving
Expand Down Expand Up @@ -949,8 +1005,15 @@ executable cardano-wallet-web-docs
-fno-warn-orphans
-with-rtsopts=-N
-O2
-optl-fuse-ld=gold
ld-options: -fuse-ld=gold

-- linker speed ups for linux and macOS
if os(linux)
ghc-options: -optl-fuse-ld=gold
ld-options: -fuse-ld=gold
if os(darwin)
ghc-options: "-pgmP clang" "-pgmc clang" "-pgma clang" "-pgml clang"
ld-options: -fuse-ld=lld

default-extensions: DeriveDataTypeable
DeriveGeneric
GeneralizedNewtypeDeriving
Expand Down Expand Up @@ -995,8 +1058,15 @@ executable cardano-wallet-web-api-swagger
-fno-warn-orphans
-with-rtsopts=-N
-O2
-optl-fuse-ld=gold
ld-options: -fuse-ld=gold

-- linker speed ups for linux and macOS
if os(linux)
ghc-options: -optl-fuse-ld=gold
ld-options: -fuse-ld=gold
if os(darwin)
ghc-options: "-pgmP clang" "-pgmc clang" "-pgma clang" "-pgml clang"
ld-options: -fuse-ld=lld

default-extensions: NoImplicitPrelude
build-tools: cpphs >= 1.19
ghc-options: -pgmP cpphs -optP --cpp
Expand All @@ -1013,8 +1083,15 @@ executable cardano-checks
ghc-options: -threaded
-Wall
-O2
-optl-fuse-ld=gold
ld-options: -fuse-ld=gold

-- linker speed ups for linux and macOS
if os(linux)
ghc-options: -optl-fuse-ld=gold
ld-options: -fuse-ld=gold
if os(darwin)
ghc-options: "-pgmP clang" "-pgmc clang" "-pgma clang" "-pgml clang"
ld-options: -fuse-ld=lld

default-extensions: OverloadedStrings

executable cardano-genupdate
Expand All @@ -1033,8 +1110,15 @@ executable cardano-genupdate
ghc-options: -threaded
-Wall
-O2
-optl-fuse-ld=gold
ld-options: -fuse-ld=gold

-- linker speed ups for linux and macOS
if os(linux)
ghc-options: -optl-fuse-ld=gold
ld-options: -fuse-ld=gold
if os(darwin)
ghc-options: "-pgmP clang" "-pgmc clang" "-pgma clang" "-pgml clang"
ld-options: -fuse-ld=lld

default-extensions: OverloadedStrings
NoImplicitPrelude

Expand Down Expand Up @@ -1067,8 +1151,15 @@ executable cardano-keygen
-fno-warn-orphans
-with-rtsopts=-N
-O2
-optl-fuse-ld=gold
ld-options: -fuse-ld=gold

-- linker speed ups for linux and macOS
if os(linux)
ghc-options: -optl-fuse-ld=gold
ld-options: -fuse-ld=gold
if os(darwin)
ghc-options: "-pgmP clang" "-pgmc clang" "-pgma clang" "-pgml clang"
ld-options: -fuse-ld=lld

default-extensions: DeriveDataTypeable
DeriveGeneric
GeneralizedNewtypeDeriving
Expand Down Expand Up @@ -1109,8 +1200,15 @@ executable cardano-launcher
ghc-options: -threaded
-Wall
-O2
-optl-fuse-ld=gold
ld-options: -fuse-ld=gold

-- linker speed ups for linux and macOS
if os(linux)
ghc-options: -optl-fuse-ld=gold
ld-options: -fuse-ld=gold
if os(darwin)
ghc-options: "-pgmP clang" "-pgmc clang" "-pgma clang" "-pgml clang"
ld-options: -fuse-ld=lld

default-extensions: OverloadedStrings
RecordWildCards
TupleSections
Expand Down Expand Up @@ -1193,8 +1291,15 @@ test-suite cardano-test
-Wall
-fno-warn-orphans
-with-rtsopts=-N
-optl-fuse-ld=gold
ld-options: -fuse-ld=gold

-- linker speed ups for linux and macOS
if os(linux)
ghc-options: -optl-fuse-ld=gold
ld-options: -fuse-ld=gold
if os(darwin)
ghc-options: "-pgmP clang" "-pgmc clang" "-pgma clang" "-pgml clang"
ld-options: -fuse-ld=lld

default-extensions: DeriveDataTypeable
DeriveGeneric
GeneralizedNewtypeDeriving
Expand Down Expand Up @@ -1245,8 +1350,15 @@ benchmark cardano-bench-criterion
-Wall
-fno-warn-orphans
-O2
-optl-fuse-ld=gold
ld-options: -fuse-ld=gold

-- linker speed ups for linux and macOS
if os(linux)
ghc-options: -optl-fuse-ld=gold
ld-options: -fuse-ld=gold
if os(darwin)
ghc-options: "-pgmP clang" "-pgmc clang" "-pgma clang" "-pgml clang"
ld-options: -fuse-ld=lld

default-extensions: DeriveDataTypeable
DeriveGeneric
GeneralizedNewtypeDeriving
Expand Down

0 comments on commit f8ea767

Please sign in to comment.