[LLVMbugs] [Bug 17257] New: VS2012 integration Platform Toolset needs to disable SAFESEH linking
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Mon Sep 16 03:34:52 PDT 2013
http://llvm.org/bugs/show_bug.cgi?id=17257
Bug ID: 17257
Summary: VS2012 integration Platform Toolset needs to disable
SAFESEH linking
Product: new-bugs
Version: trunk
Hardware: PC
OS: other
Status: NEW
Severity: normal
Priority: P
Component: new bugs
Assignee: unassignedbugs at nondot.org
Reporter: p_hampson at wargaming.net
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Clang apparently doesn't produce objects usable with the SAFESEH flag enabled
(See https://code.google.com/p/chromium/issues/detail?id=82385#c65) 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).
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20130916/d2e8e4e4/attachment.html>
More information about the llvm-bugs
mailing list