fix build with old ghc that lacks MIN_VERSION_GLASGOW_HASKELL macro

This commit is contained in:
Joey Hess 2016-04-27 14:32:05 -04:00
parent 325e21d8bb
commit 665d7ac6e0
Failed to extract signature

View file

@ -74,7 +74,15 @@ installLinkerShim top linker exe = do
[ "#!/bin/sh"
, "GIT_ANNEX_PROGRAMPATH=\"$0\""
, "export GIT_ANNEX_PROGRAMPATH"
#ifdef MIN_VERSION_GLASGOW_HASKELL
#if ! MIN_VERSION_GLASGOW_HASKELL(7,10,0,0)
#define NEED_LOCPATH_WORKAROUND
#endif
#else
#define NEED_LOCPATH_WORKAROUND
#endif
#ifdef NEED_LOCPATH_WORKAROUND
#warning enabling LOCPATH workaround for old ghc
-- workaround for https://ghc.haskell.org/trac/ghc/ticket/7695
, "LOCPATH=/dev/null"
, "export LOCPATH"