Where does the -DNDEBUG normally come from?

后端 未结 3 1578
我在风中等你
我在风中等你 2020-12-03 05:18

Our build system has somehow changed such that optimized builds are no longer getting the -DNDEBUG added to the compile line. I searched our makefiles and don\'t find this.

3条回答
  •  伪装坚强ぢ
    2020-12-03 05:31

    Since the compiler can't decide on its own when to add the NDEBUG define and when not to, the flag is always set by either the makefile or project file (depending on your build system).

提交回复
热议问题