[swift-evolution] [DRAFT] Introducing a Debug Build Configuration Test

Ben Rimmington me at benrimmington.com
Fri Mar 18 05:12:29 CDT 2016


Would `isOptimized` and `isOptimizedUnchecked` be useful, and also easier to specify?

> On 15 Mar 2016, at 17:28, Jordan Rose via swift-evolution <swift-evolution at swift.org> wrote:
> 
> What is a "debug build"? Is it one where testing is enabled? Where the optimization level is -Onone? (We've talked about having an -Odebug and/or -Oplayground at some point. Are those "debug builds"?) Is it one where asserts are not removed? (This can technically be controlled independently of -O, but we don't advertise the fact, and I'm not sure we even want that feature.)

If you mean the `-assert-config` option, it is listed by the `swiftc -help` command.

-- Ben


More information about the swift-evolution mailing list