Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a systemd cabal flag #326

Closed
wants to merge 1 commit into from
Closed
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
12 changes: 10 additions & 2 deletions cardano-cli/cardano-cli.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ Flag unexpected_thunks
Description: Turn on unexpected thunks checks
Default: False

flag systemd
description: Enable systemd support
default: True
manual: False

common project-config
default-language: Haskell2010

Expand All @@ -33,8 +38,6 @@ common project-config
-Wpartial-fields
-Wredundant-constraints

if impl(ghc >= 9.6)
ghc-options: -Wunused-packages
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to remove this to avoid warnings.

Was not able to conditionally disable the warning.


common maybe-unix
if !os(windows)
Expand All @@ -48,6 +51,11 @@ library
import: project-config
, maybe-unix

if os(linux) && flag(systemd)
cpp-options: -DSYSTEMD
build-depends: lobemo-scribe-systemd
, systemd >= 2.3.0

if flag(unexpected_thunks)
cpp-options: -DUNEXPECTED_THUNKS

Expand Down