Allow setting GC_INITIAL_HEAP_SIZE for hydra-eval-jobs

This cannot be done in the hydra-evaluator systemd unit, since then
every other Nix process (e.g. hydra-evaluator and nix-prefetch-*) will
also allocate the specified heap size, probably leading to OOM.
This commit is contained in:
Eelco Dolstra
2018-05-16 14:14:53 +02:00
parent 691f7e168c
commit 4e27796eba
4 changed files with 64 additions and 49 deletions

View File

@@ -2,5 +2,4 @@ bin_PROGRAMS = hydra-eval-jobs
hydra_eval_jobs_SOURCES = hydra-eval-jobs.cc
hydra_eval_jobs_LDADD = $(NIX_LIBS)
AM_CXXFLAGS = $(NIX_CFLAGS)
hydra_eval_jobs_CXXFLAGS = $(NIX_CFLAGS) -I ../libhydra