Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-134786

include(sanitize.conf) missing for MSVC

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.12.12, 6.8.2
    • Build tools: qmake
    • None
    • Windows

    Description

      Adding the line

      CONFIG += sanitizer sanitize_address

      in a pro-file has no effect for MSVC.

       

      However, MSVC supports address sanitizer (https://learn.microsoft.com/en-us/cpp/sanitizers/asan?view=msvc-170).

      The feature is activated by the command line
      /fsanitize=address
      but also
      -fsanitize=address
      is accepted.

      So, when I add the line
      include(sanitize.conf)
      to the end of the file
      ...\5.12.12\msvc2017_64\mkspecs\common\msvc-desktop.conf
      the MSVC address sanitizer is used.

      So, shouldn't at least address sanitizer be available for MSVC?

      Attachments

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

        Activity

          People

            qtbuildsystem Qt Build System Team
            moellney Michael Möllney
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes