Skip to content
Snippets Groups Projects
Commit 146b5e76 authored by Virgile Prevosto's avatar Virgile Prevosto Committed by Allan Blanchard
Browse files

[nix] ask dune to output errors also at the end of the log

on longer log (i.e. frama-c or plug-in compilation), it can be quite
tedious to check the log in the CI to spot the error. The new option
will instruct dune to put the error message (and its associated
command line) at the end of the log as well.
parent 5ad054dd
No related branches found
No related tags found
No related merge requests found
...@@ -19,7 +19,7 @@ stdenv.mkDerivation rec { ...@@ -19,7 +19,7 @@ stdenv.mkDerivation rec {
]; ];
buildPhase = '' buildPhase = ''
dune build -j1 @doc dune build -j1 --error-reporting=twice @doc
cp -r _build/default/_doc/_html frama-c-api cp -r _build/default/_doc/_html frama-c-api
echo ".dummy" > excluded echo ".dummy" > excluded
tar czf frama-c-api.tar.gz -X excluded frama-c-api tar czf frama-c-api.tar.gz -X excluded frama-c-api
......
...@@ -110,7 +110,7 @@ stdenvNoCC.mkDerivation rec { ...@@ -110,7 +110,7 @@ stdenvNoCC.mkDerivation rec {
dune_opt = if release_mode then "--release" else "" ; dune_opt = if release_mode then "--release" else "" ;
buildPhase = '' buildPhase = ''
dune build -j2 --display short $release_mode @install dune build -j2 --display short --error-reporting=twice $release_mode @install
make tools/ptests/ptests.exe make tools/ptests/ptests.exe
make tools/ptests/wtests.exe make tools/ptests/wtests.exe
''; '';
......
...@@ -115,7 +115,7 @@ stdenvNoCC.mkDerivation rec { ...@@ -115,7 +115,7 @@ stdenvNoCC.mkDerivation rec {
# Do not use default parallel building, but allow 2 cores for Frama-C build # Do not use default parallel building, but allow 2 cores for Frama-C build
enableParallelBuilding = false; enableParallelBuilding = false;
buildPhase = '' buildPhase = ''
dune build -j2 --display short @install dune build -j2 --display short --error-reporting=twice @install
make tools/ptests/ptests.exe make tools/ptests/ptests.exe
make tools/ptests/wtests.exe make tools/ptests/wtests.exe
''; '';
......
...@@ -83,7 +83,7 @@ stdenv.mkDerivation { ...@@ -83,7 +83,7 @@ stdenv.mkDerivation {
''; '';
buildPhase = '' buildPhase = ''
runHook preBuild runHook preBuild
dune build -j2 --display short @install dune build -j2 --display short --error-reporting=twice @install
''; '';
wp_cache = wp_cache =
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment