[swift-evolution] [DRAFT] Introducing a Debug Build Configuration Test
Erica Sadun
erica at ericasadun.com
Tue Mar 15 13:19:52 CDT 2016
> On Mar 15, 2016, at 11:28 AM, Jordan Rose <jordan_rose at apple.com> 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.)
>
> Also, what is "config"? It doesn't mean anything to me on its own, which means I wouldn't know what else I can put besides "debug".
>
> Jordan
>
Figuring out what debug *means* is an important first step. To "my people", it's the Xcode Build Configuration > Debug scheme setting. For language purposes, the only definition I can come up with at the moment is that debug is what happens when asserts can fire and are not disabled by compile-time optimizations.
Is there a better definition?
-- E
More information about the swift-evolution
mailing list