# ASTVerifier now can be run in no-asserts builds using -Xfrontend -enable-ast-verifier

**URL:** <https://forums.swift.org/t/astverifier-now-can-be-run-in-no-asserts-builds-using-xfrontend-enable-ast-verifier/44219>\
**Category:** Compiler\
**Created:** [January 27, 2021, 6:20pm UTC](https://forums.swift.org/t/astverifier-now-can-be-run-in-no-asserts-builds-using-xfrontend-enable-ast-verifier/44219 "2021-01-27T18:20:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Michael\_Gottesman](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/michael_gottesman/32/280_2.png) [@Michael\_Gottesman](https://forums.swift.org/u/Michael_Gottesman)\
**Post date:** [January 27, 2021, 6:20pm UTC](https://forums.swift.org/t/astverifier-now-can-be-run-in-no-asserts-builds-using-xfrontend-enable-ast-verifier/44219/1 "2021-01-27T18:20:35Z")

</div>

Following along with the chain of thought in this forum post: [SIL Verifier now enabled in non-asserts builds behind -sil-verify-all](https://forums.swift.org/t/sil-verifier-now-enabled-in-non-asserts-builds-behind-sil-verify-all/44123), in the following PR: [[ast] Enable the ASTVerifier behind the enable-ast-verifier flag in no-asserts builds. by gottesmm · Pull Request #35587 · apple/swift · GitHub](https://github.com/apple/swift/pull/35587/files), I changed the ASTVerifier to be compiled into the compiler in no-asserts builds but only enabled it behind a flag. This should help triaging with no-asserts compilers. I am going to see if I can find some time to implement the re-run functionality that I mentioned previously (and also perhaps a driver flag for extra compile time verification that always passes in these frontend flags).

@typesanitizer @tbkka @Erik_Eckstein @Andrew_Trick @dan-zheng

Stay tuned!

---

<div class="post-metadata">

**Author:** ![Douglas\_Gregor](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/douglas_gregor/32/1362_2.png) [@Douglas\_Gregor](https://forums.swift.org/u/Douglas_Gregor)\
**Post date:** [January 27, 2021, 11:00pm UTC](https://forums.swift.org/t/astverifier-now-can-be-run-in-no-asserts-builds-using-xfrontend-enable-ast-verifier/44219/2 "2021-01-27T23:00:42Z")

</div>

This is a great step, thanks!

Doug
