ghc-8.10.6: The GHC API
Safe HaskellNone




readProcessEnvWithExitCode Source #


:: String

program path

-> [String]

program args

-> (String, String)

addition to the environment

-> IO (ExitCode, String, String)

(exit_code, stdout, stderr)

Version of System.Process.readProcessWithExitCode that takes a key-value tuple to insert into the environment.

runSomethingResponseFile :: DynFlags -> (String -> String) -> String -> String -> [Option] -> Maybe [(String, String)] -> IO () Source #

Run a command, placing the arguments in an external response file.

This command is used in order to avoid overlong command line arguments on Windows. The command line arguments are first written to an external, temporary response file, and then passed to the linker via @filepath. response files for passing them in. See: