X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=compiler%2Fmain%2FStaticFlagParser.hs;fp=compiler%2Fmain%2FStaticFlagParser.hs;h=a153435967d6c24e9fadf5df47b62f2383051297;hp=f3d737cbd74ae773caffacb1bf69beb490200d3c;hb=740618f2b7d822f53528d271ccfb617c8ce84c55;hpb=b0758d03f1a00ab0adf57f8157602ef22e8cdd13 diff --git a/compiler/main/StaticFlagParser.hs b/compiler/main/StaticFlagParser.hs index f3d737c..a153435 100644 --- a/compiler/main/StaticFlagParser.hs +++ b/compiler/main/StaticFlagParser.hs @@ -53,7 +53,7 @@ parseStaticFlags args = do -- deal with the way flags: the way (eg. prof) gives rise to -- further flags, some of which might be static. - way_flags <- findBuildTag + way_flags <- getWayFlags let way_flags' = map (mkGeneralLocated "in way flags") way_flags -- if we're unregisterised, add some more flags @@ -128,7 +128,7 @@ static_flags = [ ----- Linker -------------------------------------------------------- , Flag "static" (PassFlag addOpt) Supported - , Flag "dynamic" (NoArg (removeOpt "-static")) Supported + , Flag "dynamic" (NoArg (removeOpt "-static" >> addWay WayDyn)) Supported -- ignored for compat w/ gcc: , Flag "rdynamic" (NoArg (return ())) Supported