Skip to content

Instantly share code, notes, and snippets.

@notogawa
Last active December 20, 2015 16:38
Embed
What would you like to do?
gold用
#!/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