on master help sign in
Put fs event executable under manual-tests flag

Otherwise it is always built when we build the library.

commitcaf0b559de43c918f9fa7583e05ca8de1eaaaf37 authorHarendra Kumar <harendra@composewell.com> dateTue 13 Oct 2020, 18:06 (6 years ago) parent4223969
2 files changed+13−1
src/Streamly/Internal/FileSystem/Event/Darwin.hs+7 streamly.cabal+6−1
src/Streamly/Internal/FileSystem/Event/Darwin.hs+7
@@ -1020,4 +1020,11 @@ showEvent ev@Event{..} =
10201020 where showev f str = if f ev then "\n" ++ str else ""
10211021#else
10221022module Streamly.Internal.FileSystem.Event.Darwin () where
1023+#warning "Autoconf did not find the definition \
1024+kFSEventStreamCreateFlagFileEvents in Darwin header files.\
1025+Do you have Cocoa framework header files installed?\
1026+Not compiling the Streamly.Internal.FileSystem.Event.Darwin module. \
1027+Programs depending on this module may not compile. \
1028+Check if HAVE_DECL_KFSEVENTSTREAMCREATEFLAGFILEEVENTS is defined in config.h \
1029+generated from src/config.h.in"
10231030#endif
streamly.cabal+6−1
@@ -210,6 +210,11 @@ flag use-c-malloc
210210 manual: True
211211 default: False
212212
213+flag manual-tests
214+ description: Builds tests that are to be run manually
215+ manual: True
216+ default: False
217+
213218-------------------------------------------------------------------------------
214219-- Common stanzas
215220-------------------------------------------------------------------------------
@@ -881,7 +886,7 @@ executable FileSystem.Event
881886 build-depends:
882887 streamly
883888 , base >= 4.8 && < 5
884− if os(windows)
889+ if !flag(manual-tests) || os(windows)
885890 buildable: False
886891
887892-------------------------------------------------------------------------------