Changeset 4788 for src/Pugs/Embed

Show
Ignore:
Timestamp:
06/18/05 12:58:05 (4 years ago)
Author:
iblech
svk:copy_cache_prev:
6529
Message:

* Pugs.Embed.Parrot -- Pass contents of %*ENV<PUGS_PARROT_OPTS> as option to parrot.
* pugs::run -- Document this new environment variable.
* util/livecd/linuxrc -- Set PUGS_PARROT_OPTS to "-jO" for maximum speed.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/Pugs/Embed/Parrot.hsc

    r4782 r4788  
    1313import Data.Maybe 
    1414import Control.Monad 
     15import Pugs.Compat (getEnv) 
    1516 
    1617findExecutable' :: String -> IO (Maybe FilePath) 
     
    3940    -- parrot -j is fatal on systems where jit is not supported, 
    4041    -- so we use the next fastest CGP core. 
    41     rawSystem cmd ["-C", file] 
     42    args <- getEnv "PUGS_PARROT_OPTS" 
     43    let args' | isJust args = fromJust args 
     44              | otherwise   = "-C" 
     45    rawSystem cmd [args', file] 
    4246    return () 
    4347