Skip to content

Commit

Permalink
justfile: replace enableOptimized flag with disableOptimized (#2783)
Browse files Browse the repository at this point in the history
`just install` now builds the optimized binary by default.

use `just disableOptimized=yes install` to build the non-optimized
binary (with faster build time).
  • Loading branch information
paulcadman authored May 15, 2024
1 parent e9a7e94 commit 47b3b19
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ env:
VAMPIRREPO: anoma/vamp-ir
VAMPIRVERSION: v0.1.3
CAIRO_VM_VERSION: 6bb5330aede3fc8049b498012a6efbf12bc9432a
JUST_ARGS: enableOptimized=yes runtimeCcArg=$CC runtimeLibtoolArg=$LIBTOOL
JUST_ARGS: runtimeCcArg=$CC runtimeLibtoolArg=$LIBTOOL
STACK_BUILD_ARGS: --pedantic -j4 --ghc-options=-j

jobs:
Expand Down
8 changes: 4 additions & 4 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
# just disableParallel=yes test
disableParallel := ''

# set to non-empty string to enable optimzed build
# set to non-empty string to disable optimized build
#
# e.g:
# just enableOptimized=yes install
enableOptimized := ''
# just disableOptimized=yes install
disableOptimized := ''

# set to non-empty string to enable command debugging
enableDebug := ''
Expand All @@ -34,7 +34,7 @@ runtimeLibtoolFlag := if runtimeLibtoolArg == '' { '' } else { "LIBTOOL=" + runt
runtimeArgs := trim(runtimeCcFlag + ' ' + runtimeLibtoolFlag)

# flags used in the stack command
stackOptFlag := if enableOptimized == '' { '--fast' } else { '' }
stackOptFlag := if disableOptimized == '' { '' } else { '--fast' }
# 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
Expand Down

0 comments on commit 47b3b19

Please sign in to comment.