@@ -68,6 +68,8 @@ Boot options:
6868Commands for core developers:
6969 all-strict bootstrap the compiler and build tools for release,
7070 using strict mode for compiling
71+ all-test bootstrap the compiler and build the tools for use
72+ during testing
7173 docs [options] generates the full documentation
7274 csource -d:danger builds the C sources for installation
7375 pdf builds the PDF documentation
@@ -363,16 +365,16 @@ type
363365 Windows
364366 Unix
365367
366- proc buildReleaseBinaries (args = " " ) =
368+ proc buildBinaries (args = " " ) =
367369 # # Build binaries needed for creating a release
368370 # Boot the compiler
369- boot (" -d:danger " & args)
371+ boot (args)
370372 # Build the tools
371373 buildTools (args)
372374
373375proc binArchive (target: BinArchiveTarget , args: string ) =
374376 # # Builds binary archive for `target`
375- buildReleaseBinaries ( )
377+ buildBinaries ( " -d:danger " )
376378 # Build the binary archive
377379 let binaryArgs =
378380 case target
@@ -542,10 +544,11 @@ when isMainModule:
542544 else : showHelp (success = false )
543545 of cmdArgument:
544546 case normalize (op.key)
545- of " all" : buildReleaseBinaries ( op.cmdLineRest)
546- of " all-strict " :
547+ of " all" : buildBinaries ( " -d:danger " & op.cmdLineRest)
548+ of " all-test " :
547549 # when using strict mode, don't abort after the first error
548- buildReleaseBinaries (" -d:nimStrictMode --errorMax:3 " & op.cmdLineRest)
550+ buildBinaries (
551+ " -d:nimStrictMode --errorMax:3 -d:release " & op.cmdLineRest)
549552 of " boot" : boot (op.cmdLineRest)
550553 of " clean" : clean (op.cmdLineRest)
551554 of " doc" , " docs" : buildDocs (op.cmdLineRest)
0 commit comments