Skip to content

Commit d29d7bb

Browse files
authored
Merge pull request #3957 from 23Skidoo/issue-3915
D.S.GHCJS.libAbiHash: exclude trailing newline.
2 parents 4dd9273 + 74b4049 commit d29d7bb

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Cabal/Distribution/Simple/GHCJS.hs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -789,8 +789,9 @@ libAbiHash verbosity _pkg_descr lbi lib clbi = do
789789
else error "libAbiHash: Can't find an enabled library way"
790790
--
791791
(ghcjsProg, _) <- requireProgram verbosity ghcjsProgram (withPrograms lbi)
792-
getProgramInvocationOutput verbosity
793-
(ghcInvocation ghcjsProg comp platform ghcArgs)
792+
hash <- getProgramInvocationOutput verbosity
793+
(ghcInvocation ghcjsProg comp platform ghcArgs)
794+
return (takeWhile (not . isSpace) hash)
794795

795796
adjustExts :: String -> String -> GhcOptions -> GhcOptions
796797
adjustExts hiSuf objSuf opts =

0 commit comments

Comments
 (0)