summaryrefslogtreecommitdiff
path: root/git-annex.cabal
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2013-06-20 21:10:16 -0400
committerGravatar Joey Hess <joey@kitenet.net>2013-06-20 22:25:41 -0400
commit1a171303b442351cf2b63038776f856902cce1dd (patch)
tree57fa532de533d111a76b8808253869026aae348e /git-annex.cabal
parenta6914b4761bbedc27a7199a5c05466fdd0edb905 (diff)
assistant: On Linux, the expensive transfer scan is run niced.
This is a compromise. I would like to nice every thread except for the webapp thread, but it's not practical to do so. That would need every thread to run as a bound thread, which could add significant overhead. And any forkIO would escape the nice level.
Diffstat (limited to 'git-annex.cabal')
-rw-r--r--git-annex.cabal3
1 files changed, 3 insertions, 0 deletions
diff --git a/git-annex.cabal b/git-annex.cabal
index 210b64b01..5ac4d0f0b 100644
--- a/git-annex.cabal
+++ b/git-annex.cabal
@@ -115,6 +115,9 @@ Executable git-annex
Build-Depends: data-endian
CPP-Options: -D__ANDROID__
+ if os(linux)
+ CPP-Options: -D__LINUX__
+
if os(linux) && flag(Inotify)
Build-Depends: hinotify
CPP-Options: -DWITH_INOTIFY