Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8236274

remove obsolete -d2Zi+ debug flag in MSVC builds

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 15
    • Fix Version/s: 15
    • Component/s: infrastructure
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b05
    • CPU:
      generic
    • OS:
      windows

      Description

      The MSVC based builds still have the old flag -d2Zi+ set; this is as far as I know undocumented, the name of the flag is since VS2013 -Zo .
      However the flag is enabled by default for a long time , so it should be fine to remove it completely.

      See the VS2017 documentation :
      https://docs.microsoft.com/en-us/cpp/build/reference/zo-enhance-optimized-debugging?view=vs-2017

      "The /Zo option is enabled by default in Visual Studio when you specify debugging information with /Zi or /Z7. Specify /Zo- to explicitly disable this compiler option.
      The /Zo switch is available starting in Visual Studio 2013 Update 3, and it replaces the previously undocumented /d2Zi+ switch."

        Attachments

          Activity

            People

            • Assignee:
              mbaesken Matthias Baesken
              Reporter:
              mbaesken Matthias Baesken
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: