Skip to content

Commit

Permalink
CAD-1878 compilation flags: 'eventlog' flag for optional -leventlog l…
Browse files Browse the repository at this point in the history
…inking
  • Loading branch information
deepfire committed Oct 26, 2020
1 parent b691710 commit 3e0b200
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions nix/haskell.nix
Expand Up @@ -10,6 +10,8 @@
, compiler
# Enable profiling
, profiling ? false
# Link with -leventlog
, eventlog ? false
# Enable asserts for given packages
, assertedPackages ? []
# Version info, to be passed when not building from a git work tree
Expand Down Expand Up @@ -112,6 +114,10 @@ let
packages = lib.genAttrs projectPackages
(name: { configureFlags = [ "--ghc-option=-Werror" ]; });
}
(lib.optionalAttrs eventlog {
packages = lib.genAttrs projectPackages
(name: { configureFlags = [ "--ghc-option=-leventlog" ]; });
})
(lib.optionalAttrs profiling {
enableLibraryProfiling = true;
packages.cardano-node.components.exes.cardano-node.enableExecutableProfiling = true;
Expand Down

0 comments on commit 3e0b200

Please sign in to comment.