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

Commit

Permalink
[CSL-1002] Link project with gold linker on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
chshersh committed Apr 14, 2017
1 parent f754d7a commit fba5f79
Showing 1 changed file with 97 additions and 1 deletion.
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

0 comments on commit fba5f79

Please sign in to comment.