Details
-
Suggestion
-
Resolution: Done
-
P3: Somewhat important
-
0.2
-
None
-
4e980e0a9883f7f5c66a74feac517ed737369fe9
Description
It is conventional for the build system to define this preprocessor macro when generating a release build [1][2]. QBS should therefore define it when buildVariant===release, to avoid the necessity for a user to add a block like this:
Properties { condition: qbs.buildVariant === "release" cpp. defines: outer.concat (["NDEBUG"]) }
[1] http://stackoverflow.com/questions/1878645/where-does-the-dndebug-normally-come-from
[2] http://stackoverflow.com/questions/3167161/when-does-gcc-define-ndebug