avoid hsc files on Windows

This used to work, but now hsc2hs is failing with a usage message.
Since I have not changed my windows build environment at all, it must be
some change due to a change in the cabal file. Perhaps too make flags are
causing it to hit a windows command line length limit?

Anyway, these hsc files did nothing on Windows, so can be omitted and not
built to work around yet another epic windows weirdness.
This commit is contained in:
Joey Hess 2013-10-17 16:35:14 -04:00
parent c02bc07ce0
commit 158ba9d332
3 changed files with 17 additions and 5 deletions

View file

@ -24,8 +24,10 @@ import Annex.Link
import qualified Annex
import qualified Annex.Queue
#ifndef __ANDROID__
#ifdef WTTH_CLIBS
import Utility.Touch
#endif
#endif
import Utility.FileMode
import Config
import Utility.InodeCache
@ -206,11 +208,13 @@ link file key mcache = flip catchAnnex (undo file key) $ do
replaceFile file $ makeAnnexLink l
#ifndef __ANDROID__
#ifdef WITH_CLIBS
-- touch symlink to have same time as the original file,
-- as provided in the InodeCache
case mcache of
Just c -> liftIO $ touch file (TimeSpec $ inodeCacheToMtime c) False
Nothing -> noop
#endif
#endif
return l