on master help sign in
Remove conditional in Warp test suite
commit7bfb34be7b866e08fc44573a5d7f5bba17512a78 authorMichael Snoyman <michael@snoyman.com> dateThu 1 Nov 2012, 06:58 (14 years ago) parentbd5fbde
1 file changed+9−5
warp/warp.cabal+9−5
warp/warp.cabal+9−5
@@ -82,12 +82,16 @@ Test-Suite spec
8282 , HUnit
8383 , QuickCheck
8484 , hspec == 1.3.*
85− if os(linux) || os(freebsd) || os(darwin)
86− Cpp-Options: -DSENDFILEFD
87− Build-Depends: unix
85+
86+ -- Yes, this means that the test suite will no longer work on Windows.
87+ -- Unfortunately there is a bug in older versions of cabal, and this conditional
88+ -- will therefore break older systems.
89+ --if os(linux) || os(freebsd) || os(darwin)
90+ Cpp-Options: -DSENDFILEFD
91+ Build-Depends: unix
8892 , hashable
89− if os(windows)
90− Cpp-Options: -DWINDOWS
93+ --if os(windows)
94+ -- Cpp-Options: -DWINDOWS
9195
9296Source-Repository head
9397 Type: git