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

Conditional data-files #10555

Open
augustss opened this issue Nov 18, 2024 · 1 comment
Open

Conditional data-files #10555

augustss opened this issue Nov 18, 2024 · 1 comment

Comments

@augustss
Copy link
Contributor

What is your question?
I need to install different data-files depending on a condition (in my case which compiler it is).
I tried using an if, but that doesn't seem to work.

Is there no way to do this? Or am I just being stupid?

System information
cabal-install version 3.12.1.0
compiled using version 3.12.1.0 of the Cabal library

@philderbeast
Copy link
Collaborator

I haven't tested this but from the docs it looks like conditionals are not available for data-files:

Conditional blocks may appear anywhere inside a component or common section.
SOURCE: Conditional Blocks.

# https://github.com/haskell/cabal/pull/9153/files
- Conditional blocks may appear anywhere inside a library or executable
+ Conditional blocks may appear anywhere inside a component or common

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants