Skip to content

Commit

Permalink
Pass -x to strip on OSX
Browse files Browse the repository at this point in the history
  • Loading branch information
dcoutts committed Jul 20, 2008
1 parent 92a7981 commit 7134eac
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Distribution/Simple/GHC.hs
Original file line number Diff line number Diff line change
Expand Up @@ -727,9 +727,13 @@ installExe verbosity lbi pref buildPref (progprefix, progsuffix) pkg_descr
stripExe :: Verbosity -> LocalBuildInfo -> FilePath -> FilePath -> IO ()
stripExe verbosity lbi name path = when (stripExes lbi) $
case lookupProgram stripProgram (withPrograms lbi) of
Just strip -> rawSystemProgram verbosity strip [path]
Just strip -> rawSystemProgram verbosity strip options
Nothing -> warn verbosity $ "Unable to strip executable '" ++ name
++ "' (missing the 'strip' program)"
where
options = path : case buildOS of
OSX -> ["-x"]
_ -> []

-- |Install for ghc, .hi, .a and, if --with-ghci given, .o
installLib :: Verbosity -- ^verbosity
Expand Down

0 comments on commit 7134eac

Please sign in to comment.