Uploaded image for project: 'Qbs ("Cubes")'
  1. Qbs ("Cubes")
  2. QBS-150

Define NDEBUG when buildVariant is release

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Done
    • P3: Somewhat important
    • 0.2
    • 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

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            jbornema Joerg Bornemann
            gallafent William Gallafent
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes