diff options
author | Ludovic Courtès <ludo@gnu.org> | 2011-06-30 15:19:13 +0000 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2011-06-30 15:19:13 +0000 |
commit | 5c9e9f732df6d95d712f25de9880b7461c53d6ca (patch) | |
tree | d4e562f7048f57d0ec87461bce441dfd450374f7 /src/libmain | |
parent | 9c99aa2620b8f86c0e7f99ebfe868e8ccb306f71 (diff) | |
download | guix-5c9e9f732df6d95d712f25de9880b7461c53d6ca.tar.gz |
Add support for the `build-timeout' and `--timeout' options.
Diffstat (limited to 'src/libmain')
-rw-r--r-- | src/libmain/shared.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libmain/shared.cc b/src/libmain/shared.cc index 3110c94523..43ec4bcdd4 100644 --- a/src/libmain/shared.cc +++ b/src/libmain/shared.cc @@ -142,6 +142,7 @@ static void initAndRun(int argc, char * * argv) maxBuildJobs = queryIntSetting("build-max-jobs", 1); buildCores = queryIntSetting("build-cores", 1); maxSilentTime = queryIntSetting("build-max-silent-time", 0); + buildTimeout = queryIntSetting("build-timeout", 0); /* Catch SIGINT. */ struct sigaction act; @@ -237,6 +238,8 @@ static void initAndRun(int argc, char * * argv) readOnlyMode = true; else if (arg == "--max-silent-time") maxSilentTime = getIntArg<unsigned int>(arg, i, args.end()); + else if (arg == "--timeout") + buildTimeout = getIntArg<unsigned int>(arg, i, args.end()); else if (arg == "--no-build-hook") useBuildHook = false; else if (arg == "--show-trace") |