Skip to content

Commit

Permalink
Merge PR coq#9647: [default.nix] Enable parallel build
Browse files Browse the repository at this point in the history
Reviewed-by: Zimmi48
Reviewed-by: ejgallego
  • Loading branch information
Zimmi48 committed Mar 19, 2019
2 parents 2b68b22 + 3219cf3 commit 0a2773c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,7 @@ pkg:opam:
dependencies: [] # We don't need to download build artifacts
before_script: [] # We don't want to use the shared 'before_script'
script:
- cat /proc/{cpu,mem}info || true
# Use current worktree as tmpdir to allow exporting artifacts in case of failure
- export TMPDIR=$PWD
# We build an expression rather than a direct URL to not be dependent on
Expand Down
2 changes: 2 additions & 0 deletions default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ stdenv.mkDerivation rec {

prefixKey = "-prefix ";

enableParallelBuilding = true;

buildFlags = [ "world" "byte" ] ++ optional buildDoc "doc-html";

installTargets =
Expand Down
1 change: 0 additions & 1 deletion dev/ci/nix/coq.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,4 @@ let coq = callPackage wd { buildDoc = false; doInstallCheck = false; coq-version
coq.overrideAttrs (o: {
name = "coq-local-${branch}";
src = fetchGit "${wd}";
enableParallelBuilding = true;
})

0 comments on commit 0a2773c

Please sign in to comment.