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

[CSL-1002] Link project with gold linker #193

Merged
merged 1 commit into from
Apr 14, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
98 changes: 97 additions & 1 deletion cardano-sl.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ library
build-depends: http-types
, servant >= 0.8.1
, servant-docs >= 0.8.1
, servant-server >= 0.8.1
, servant-server >= 0.8.1
, wai
, wai-extra
, warp
Expand All @@ -512,6 +512,12 @@ library
ghc-options: -Wall
-fno-warn-orphans
-O2

-- linker speed up for linux
if os(linux)
ghc-options: -optl-fuse-ld=gold
ld-options: -fuse-ld=gold

default-extensions: DeriveDataTypeable
DeriveGeneric
GeneralizedNewtypeDeriving
Expand Down Expand Up @@ -572,6 +578,12 @@ executable cardano-node
-fno-warn-orphans
-with-rtsopts=-N
-O2

-- linker speed up for linux
if os(linux)
ghc-options: -optl-fuse-ld=gold
ld-options: -fuse-ld=gold

default-extensions: DeriveDataTypeable
DeriveGeneric
GeneralizedNewtypeDeriving
Expand Down Expand Up @@ -623,6 +635,12 @@ executable cardano-analyzer
-fno-warn-orphans
-with-rtsopts=-N
-O2

-- linker speed up for linux
if os(linux)
ghc-options: -optl-fuse-ld=gold
ld-options: -fuse-ld=gold

default-extensions: DeriveDataTypeable
DeriveGeneric
GeneralizedNewtypeDeriving
Expand Down Expand Up @@ -680,6 +698,12 @@ executable cardano-wallet
-fno-warn-orphans
-with-rtsopts=-N
-O2

-- linker speed up for linux
if os(linux)
ghc-options: -optl-fuse-ld=gold
ld-options: -fuse-ld=gold

default-extensions: DeriveDataTypeable
DeriveGeneric
GeneralizedNewtypeDeriving
Expand Down Expand Up @@ -727,6 +751,12 @@ executable cardano-wallet-hs2purs
-fno-warn-orphans
-with-rtsopts=-N
-O2

-- linker speed up for linux
if os(linux)
ghc-options: -optl-fuse-ld=gold
ld-options: -fuse-ld=gold

default-extensions: DeriveDataTypeable
DeriveGeneric
GeneralizedNewtypeDeriving
Expand Down Expand Up @@ -798,6 +828,12 @@ executable cardano-smart-generator
-fno-warn-orphans
-with-rtsopts=-N
-O2

-- linker speed up for linux
if os(linux)
ghc-options: -optl-fuse-ld=gold
ld-options: -fuse-ld=gold

default-extensions: DeriveDataTypeable
DeriveGeneric
GeneralizedNewtypeDeriving
Expand Down Expand Up @@ -858,6 +894,12 @@ executable cardano-dht-keygen
-fno-warn-orphans
-with-rtsopts=-N
-O2

-- linker speed up for linux
if os(linux)
ghc-options: -optl-fuse-ld=gold
ld-options: -fuse-ld=gold

default-extensions: DeriveDataTypeable
DeriveGeneric
GeneralizedNewtypeDeriving
Expand Down Expand Up @@ -892,6 +934,12 @@ executable cardano-web-docs
-fno-warn-orphans
-with-rtsopts=-N
-O2

-- linker speed ups for linux
if os(linux)
ghc-options: -optl-fuse-ld=gold
ld-options: -fuse-ld=gold

default-extensions: DeriveDataTypeable
DeriveGeneric
GeneralizedNewtypeDeriving
Expand Down Expand Up @@ -933,6 +981,12 @@ executable cardano-wallet-web-docs
-fno-warn-orphans
-with-rtsopts=-N
-O2

-- linker speed up for linux
if os(linux)
ghc-options: -optl-fuse-ld=gold
ld-options: -fuse-ld=gold

default-extensions: DeriveDataTypeable
DeriveGeneric
GeneralizedNewtypeDeriving
Expand Down Expand Up @@ -977,6 +1031,12 @@ executable cardano-wallet-web-api-swagger
-fno-warn-orphans
-with-rtsopts=-N
-O2

-- linker speed up for linux
if os(linux)
ghc-options: -optl-fuse-ld=gold
ld-options: -fuse-ld=gold

default-extensions: NoImplicitPrelude
build-tools: cpphs >= 1.19
ghc-options: -pgmP cpphs -optP --cpp
Expand All @@ -993,6 +1053,12 @@ executable cardano-checks
ghc-options: -threaded
-Wall
-O2

-- linker speed up for linux
if os(linux)
ghc-options: -optl-fuse-ld=gold
ld-options: -fuse-ld=gold

default-extensions: OverloadedStrings

executable cardano-genupdate
Expand All @@ -1011,6 +1077,12 @@ executable cardano-genupdate
ghc-options: -threaded
-Wall
-O2

-- linker speed up for linux
if os(linux)
ghc-options: -optl-fuse-ld=gold
ld-options: -fuse-ld=gold

default-extensions: OverloadedStrings
NoImplicitPrelude

Expand Down Expand Up @@ -1043,6 +1115,12 @@ executable cardano-keygen
-fno-warn-orphans
-with-rtsopts=-N
-O2

-- linker speed up for linux
if os(linux)
ghc-options: -optl-fuse-ld=gold
ld-options: -fuse-ld=gold

default-extensions: DeriveDataTypeable
DeriveGeneric
GeneralizedNewtypeDeriving
Expand Down Expand Up @@ -1083,6 +1161,12 @@ executable cardano-launcher
ghc-options: -threaded
-Wall
-O2

-- linker speed up for linux
if os(linux)
ghc-options: -optl-fuse-ld=gold
ld-options: -fuse-ld=gold

default-extensions: OverloadedStrings
RecordWildCards
TupleSections
Expand Down Expand Up @@ -1165,6 +1249,12 @@ test-suite cardano-test
-Wall
-fno-warn-orphans
-with-rtsopts=-N

-- linker speed up for linux
if os(linux)
ghc-options: -optl-fuse-ld=gold
ld-options: -fuse-ld=gold

default-extensions: DeriveDataTypeable
DeriveGeneric
GeneralizedNewtypeDeriving
Expand Down Expand Up @@ -1215,6 +1305,12 @@ benchmark cardano-bench-criterion
-Wall
-fno-warn-orphans
-O2

-- linker speed up for linux
if os(linux)
ghc-options: -optl-fuse-ld=gold
ld-options: -fuse-ld=gold

default-extensions: DeriveDataTypeable
DeriveGeneric
GeneralizedNewtypeDeriving
Expand Down