Last active
December 20, 2015 16:38
-
-
Save notogawa/6162465 to your computer and use it in GitHub Desktop.
gold用
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/runhaskell | |
-- cabal install --with-ld=./gold.hs | |
import Data.List | |
import System.Environment | |
import System.Exit | |
import System.Process | |
ignores :: [String] | |
ignores = [ "--hash-size" | |
, "--reduce-memory-overheads" | |
] | |
main :: IO () | |
main = getArgs >>= | |
rawSystem "/usr/bin/ld.gold" . filter (\arg -> not $ any (`isPrefixOf` arg) ignores) >>= | |
exitWith |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment