From c825f23c583a4f244fdaa13341b6a7a7b028ee8c Mon Sep 17 00:00:00 2001 From: Jan Mas Rovira Date: Sat, 8 Jun 2024 09:44:43 +0200 Subject: [PATCH] Add pedantic option to justfile (#2816) --- justfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/justfile b/justfile index 55ca94dcce..170a336fb8 100644 --- a/justfile +++ b/justfile @@ -13,6 +13,9 @@ disableOptimized := '' # set to non-empty string to enable command debugging enableDebug := '' +# set to non-empty string to enable pedantic mode +pedantic := '' + # set to number of parallel jobs numParallelJobs := '' @@ -34,7 +37,7 @@ runtimeLibtoolFlag := if runtimeLibtoolArg == '' { '' } else { "LIBTOOL=" + runt runtimeArgs := trim(runtimeCcFlag + ' ' + runtimeLibtoolFlag) # flags used in the stack command -stackOptFlag := if disableOptimized == '' { '' } else { '--fast' } +stackOptFlag := (if disableOptimized == '' { '' } else { '--fast' }) + ' ' + (if pedantic == '' { '' } else { '--pedantic' }) # The ghc `-j` flag defaults to number of cpus when no argument is passed stackGhcParallelFlag := if disableParallel == '' { "--ghc-options=-j" + numParallelJobs } else { '' } # The stack `-j` options requires an argument