<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - VS2012 integration Platform Toolset needs to disable SAFESEH linking"
   href="http://llvm.org/bugs/show_bug.cgi?id=17257">17257</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>VS2012 integration Platform Toolset needs to disable SAFESEH linking
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>new-bugs
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>other
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>new bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>p_hampson@wargaming.net
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Clang apparently doesn't produce objects usable with the SAFESEH flag enabled
(See <a href="https://code.google.com/p/chromium/issues/detail?id=82385#c65">https://code.google.com/p/chromium/issues/detail?id=82385#c65</a>) and
VS2012's Microsoft.Cpp.Win32.Common.props sets "ImageHasSafeExceptionHandlers"
to true unless debug libraries are being linked and it is not already set.

This can be fixed by adding the following to
Microsoft.Cpp.Win32.LLVM-vs2012.props:

  <ItemDefinitionGroup>
    <Link>
      <ImageHasSafeExceptionHandlers>false</ImageHasSafeExceptionHandlers>
    </Link>
  </ItemDefinitionGroup>

This issue causes CMake's Visual Studio Project generator's compiler-detection
to fail to recognise Clang under VS2012 as there's no way to override the
default SAFESEH value at that stage in CMake's process (as far as I can see).</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>