X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Fcompiler%2Fmain%2FDriverPipeline.hs;h=c6d7a4dc0911ed023c6bda0710dfc195e78c2a0f;hb=70960d2ef24add2911e5613ca25cf1d226b2e082;hp=a4bf3cc2d92f7df69076318a5860bbdba24b44b4;hpb=03dc2dd3dd814ad85cc4c45e9cafc7b73163c8be;p=ghc-hetmet.git diff --git a/ghc/compiler/main/DriverPipeline.hs b/ghc/compiler/main/DriverPipeline.hs index a4bf3cc..c6d7a4d 100644 --- a/ghc/compiler/main/DriverPipeline.hs +++ b/ghc/compiler/main/DriverPipeline.hs @@ -1082,13 +1082,14 @@ staticLink dflags o_files dep_packages = do pkg_framework_paths <- getPackageFrameworkPath dflags dep_packages let pkg_framework_path_opts = map ("-F"++) pkg_framework_paths - framework_paths <- readIORef v_Framework_paths - let framework_path_opts = map ("-F"++) framework_paths + let framework_paths = frameworkPaths dflags + framework_path_opts = map ("-F"++) framework_paths pkg_frameworks <- getPackageFrameworks dflags dep_packages let pkg_framework_opts = concat [ ["-framework", fw] | fw <- pkg_frameworks ] - frameworks <- readIORef v_Cmdline_frameworks - let framework_opts = concat [ ["-framework", fw] | fw <- reverse frameworks ] + + let frameworks = cmdlineFrameworks dflags + framework_opts = concat [ ["-framework", fw] | fw <- reverse frameworks ] -- reverse because they're added in reverse order from the cmd line #endif