[commit: packages/Win32] depend-os-windows: Encode platform requirement in cabal meta-data (01de99f)
git at git.haskell.org
git at git.haskell.org
Mon Apr 17 21:28:48 UTC 2017
Repository : ssh://git@git.haskell.org/Win32
On branch : depend-os-windows
Link : http://git.haskell.org/packages/Win32.git/commitdiff/01de99fd3324914dfd5df9900b0ee9e9e1727679
>---------------------------------------------------------------
commit 01de99fd3324914dfd5df9900b0ee9e9e1727679
Author: Herbert Valerio Riedel <hvr at gnu.org>
Date: Sat Mar 18 11:01:12 2017 +0100
Encode platform requirement in cabal meta-data
This mirrors a similar provision made in the `unix` recent package versions which contain
the dual `if !os(windows)`-unbuildable construct.
>---------------------------------------------------------------
01de99fd3324914dfd5df9900b0ee9e9e1727679
Win32.cabal | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/Win32.cabal b/Win32.cabal
index 5e144cc..691625d 100644
--- a/Win32.cabal
+++ b/Win32.cabal
@@ -18,6 +18,11 @@ extra-source-files:
changelog.md
Library
+ if !os(windows)
+ -- This package requires Windows to build
+ build-depends: unbuildable<0
+ buildable: False
+
build-depends: base >= 4.5 && < 5, bytestring, filepath
ghc-options: -Wall -fno-warn-name-shadowing
cc-options: -fno-strict-aliasing
More information about the ghc-commits
mailing list