Quantcast
Channel: OCaml - Topics tagged dune
Viewing all articles
Browse latest Browse all 536

Dune: disable build on non-linux platforms

$
0
0

@suttonshire wrote:

Hi there,

I’m building a package for bindings to a c library that can only be used on Linux systems. Does dune provide a way to check the OS version and stop the build and print a nice error message if the OS is not Linux?

I see that dune has variable to check the OS version with os_version variable. I’m not quite sure how to do the rest of this.

Cheers

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 536

Trending Articles