X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2Fmain%2FStaticFlags.hs;h=a162214919388836180252337738c25d3f7eaf28;hb=17f080e87c1a8d27cab83970c0d6da7c0d5f7a0b;hp=67e8ab58e50c7883c90d045b4ad7fa85158d82b6;hpb=d2b7119250068ecbf5f085220663687733bde477;p=ghc-hetmet.git diff --git a/compiler/main/StaticFlags.hs b/compiler/main/StaticFlags.hs index 67e8ab5..a162214 100644 --- a/compiler/main/StaticFlags.hs +++ b/compiler/main/StaticFlags.hs @@ -85,7 +85,7 @@ import Data.IORef import System.IO.Unsafe ( unsafePerformIO ) import Control.Monad ( when ) import Data.Char ( isDigit ) -import Data.List ( sort, intersperse, nub ) +import Data.List ----------------------------------------------------------------------------- -- Static flags @@ -160,11 +160,6 @@ static_flags = [ , ( "dppr-user-length", AnySuffix addOpt ) -- rest of the debugging flags are dynamic - --------- Haskell Program Coverage ----------------------------------- - - , ( "fhpc" , PassFlag addOpt ) - , ( "fhpc-tracer" , PassFlag addOpt ) - --------- Profiling -------------------------------------------------- , ( "auto-all" , NoArg (addOpt "-fauto-sccs-on-all-toplevs") ) , ( "auto" , NoArg (addOpt "-fauto-sccs-on-exported-toplevs") ) @@ -284,12 +279,8 @@ opt_AutoSccsOnIndividualCafs = lookUp FSLIT("-fauto-sccs-on-individual-cafs") opt_SccProfilingOn = lookUp FSLIT("-fscc-profiling") opt_DoTickyProfiling = WayTicky `elem` (unsafePerformIO $ readIORef v_Ways) --- Hpc opts, only work in a stage2 build -#if GHCI +-- Hpc opts opt_Hpc = lookUp FSLIT("-fhpc") -#else -opt_Hpc = False -#endif -- language opts opt_DictsStrict = lookUp FSLIT("-fdicts-strict") @@ -375,9 +366,10 @@ isStaticFlag f = "fext-core", "fcpr-off", "ferror-spans", - "fPIC" + "fPIC", + "fhpc" ] - || any (flip prefixMatch f) [ + || any (`isPrefixOf` f) [ "fliberate-case-threshold", "fmax-worker-args", "fhistory-size",