Skip to content

OS-specific conditional compilation #8

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

Open
blanu opened this issue Aug 8, 2013 · 0 comments
Open

OS-specific conditional compilation #8

blanu opened this issue Aug 8, 2013 · 0 comments

Comments

@blanu
Copy link
Owner

blanu commented Aug 8, 2013

The pcap library only compiles on Linux, so I have set up OS-specific conditional compilation for the libraries that depend on the pcap module.

However, I can't find any examples of how to do conditional compilation for executables and tests, so I am currently just commenting them out when I built on Windows or OS X. This is clearly not ideal, but the cabal documentation is somewhat lacking in this area.

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

No branches or pull requests

1 participant