fix build with old ghc that lacks MIN_VERSION_GLASGOW_HASKELL macro
This commit is contained in:
parent
325e21d8bb
commit
665d7ac6e0
1 changed files with 8 additions and 0 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue