Skip to content

Commit 7333c19

Browse files
committed
Enable lightweight assertions in Linux packages
1 parent 4f8773f commit 7333c19

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

utils/build-presets.ini

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -455,10 +455,31 @@ build-subdir=buildbot_incremental_special_leaks
455455
dash-dash
456456
swift-runtime-enable-leak-checker=1
457457

458+
#===------------------------------------------------------------------------===#
459+
# Package Builders
460+
#===------------------------------------------------------------------------===#
461+
462+
# A mixin that enables 'lightweight' assertions that don't slow down the
463+
# compiler significantly.
464+
[preset: mixin_lightweight_assertions]
465+
assertions
466+
467+
# FIXME: This should be:
468+
# no-assertions
469+
# swift-assertions
470+
# ... but our tests are expecting assertions to be either on or off everywhere.
471+
472+
dash-dash
473+
474+
# AST verifier slows down the compiler significantly.
475+
swift-enable-ast-verifier=0
476+
458477
#===------------------------------------------------------------------------===#
459478
# Linux Builders
460479
#===------------------------------------------------------------------------===#
461480
[preset: mixin_linux_installation]
481+
mixin-preset=mixin_lightweight_assertions
482+
462483
llbuild
463484
swiftpm
464485
xctest

0 commit comments

Comments
 (0)