Skip to content

Commit

Permalink
And adapt to support Cabal pre 1.24
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubfijalkowski committed Jul 18, 2018
1 parent 5afa1b7 commit faa16bf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Setup.hs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,11 @@ execMake :: Verbosity.Verbosity -> String -> String -> IO ()
execMake verbosity build_target target = do
gmakePath <- findProgramOnSearchPath Verbosity.silent defaultProgramSearchPath "gmake"
let makeExec = case gmakePath of
#if MIN_VERSION_Cabal(1, 24, 0)
Just (p, _) -> p
#else
Just p -> p
#endif
Nothing -> "make"
baseArgs = if null build_target
then [makeExec, "--directory=libsass"]
Expand Down

0 comments on commit faa16bf

Please sign in to comment.