Skip to content

Define Symbol Globally (C++, assert and NDEBUG) #139

@aarossig

Description

@aarossig

I am writing C++11 and using assert to test for programmer error. I would like to disable the assertions by defining the symbol NDEBUG as per http://www.cplusplus.com/reference/cassert/assert/

How can I define this symbol for all targets when building an optimized build?

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2We'll consider working on this in future. (Assignee optional)team-Configurabilityplatforms, toolchains, cquery, select(), config transitionstype: bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions