forked from lix-project/lix
a5619f1dff
builders to point to the store and the temporary build directory, respectively. Useful for purity checking. * Also set TEMPDIR, TMPDIR, TEMP, and TEMP to NIX_BUILD_TOP to make sure that tools in the builder store temporary files in the right location.
23 lines
381 B
C++
23 lines
381 B
C++
#ifndef __EXEC_H
|
|
#define __EXEC_H
|
|
|
|
#include <string>
|
|
#include <map>
|
|
|
|
#include "util.hh"
|
|
|
|
using namespace std;
|
|
|
|
|
|
/* A Unix environment is a mapping from strings to strings. */
|
|
typedef map<string, string> Environment;
|
|
|
|
|
|
/* Run a program. */
|
|
void runProgram(const string & program,
|
|
const Strings & args, Environment env,
|
|
const string & logFileName);
|
|
|
|
|
|
#endif /* !__EXEC_H */
|