now if some module is compiled with -no-pmcfg then the PMCFG code is generated at the end during the linking phase. Now the default compilation of the libraries with cabal is with -no-pmcfg.

This commit is contained in:
kr.angelov
2011-11-24 14:23:04 +00:00
parent 0ad6557968
commit f1cacffc98
3 changed files with 34 additions and 22 deletions

View File

@@ -254,7 +254,7 @@ gfc1 mode pkg lbi file = do
Minimal -> "-preproc="++({-rgl_src_dir </>-} "mkMinimal")
createDirectoryIfMissing True dir
putStrLn $ "Compiling [" ++ show mode ++ "] " ++ file
run_gfc pkg lbi ["-s", preproc, "--gfo-dir="++dir, file]
run_gfc pkg lbi ["-s", "-no-pmcfg", preproc, "--gfo-dir="++dir, file]
gf comm files pkg lbi = do
putStrLn $ "Reading " ++ unwords files