<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>By default, CMake will use /EHsc when compiling for the Windows
platform, with no option to change this that I am aware of. If a
project wants different settings, it needs to handle this itself.
And in fact, LLVM 3.4.2 conditionally modifies /EHsc to /EHs-c- in
cmake/modules/LLVMProcessSources.cmake, so I wouldn't be surprised
if LLVM 10.0.0 does something similar (I don't have a more recent
version of LLVM lying about, so I can't check).<br>
</p>
<p><br>
</p>
<p>To figure out what option(s) you need to set or what files you
need to modify, you either need to ask the LLVM developers, or dig
through the LLVM cmake project to figure out what it is doing with
the /EHsc option.</p>
<p><br>
</p>
Am 28.10.19 um 13:33 schrieb Osman Zakir:<br>
<blockquote type="cite"
cite="mid:SG2PR06MB31584C96A6B40EF4B4B2998DD3660@SG2PR06MB3158.apcprd06.prod.outlook.com">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
<div style="color: rgb(0, 0, 0); font-family:
Calibri,Helvetica,sans-serif; font-size: 12pt;">
Alright, thanks. What about enabling C++ exceptions? I tried
setting LLVM_ENABLE_EH to On, but it didn't help. Setting
CMAKE_CXX_FLAGS to /EHsc doesn't help either. </div>
<div style="background-color:#FFFFFF">
<div class="x_moz-signature">
<div style="width:480px; text-align:left;
font-family:Arial,Helvetica,sans-serif">
</div>
</div>
</div>
</blockquote>
<div class="moz-signature">-- <br>
<div style="width:480px; text-align: left; font-family: Arial,
Helvetica, sans-serif;">
<p style="color: #062d64; font-size: 14px; text-align: left;
font-family: Arial, Helvetica, sans-serif;">
<b>Dr. Eric Dönges</b>
<br>
Senior Software Engineer
</p>
<p style="color: #062d64; font-size: 12px; text-align: left;
font-family: Arial, Helvetica, sans-serif;">MVTec Software
GmbH | Arnulfstr. 205 | 80634 Munich | Germany
<br>
<a style="font-size: 12px; font-family: Arial, Helvetica,
sans-serif; color: #062d64;"
href="mailto:mustermann@mvtec.com">doenges@mvtec.com</a> |
Tel: +49 89 457 695-0 | <a style="font-size: 12px;
font-family: Arial, Helvetica, sans-serif; color: #062d64;"
href="http://www.mvtec.com">www.mvtec.com</a>
<br>
</p>
<p>
<span style="font-size: 12px; font-family: Arial, Helvetica,
sans-serif; color: #062d64;">Find our privacy policy <a
style="font-size: 12px; font-family: Arial, Helvetica,
sans-serif; color: #062d64;"
href="https://www.mvtec.com/imprint">here</a>.</span> </p>
<p style="color: #062d64; font-size: 12px; text-align: left;
font-family: Arial, Helvetica, sans-serif;"><img
src="https://mvtec.com/fileadmin/Redaktion/newsletter/mail-signature/newsletter-icon.png"
valign="bottom" width="16" height="16"> <a style="font-size:
12px; font-family: Arial, Helvetica, sans-serif; color:
#062d64; font-weight: bold;"
href="https://www.mvtec.com/newsletter">Sign up</a> for our
MVTec Newsletter!</p>
<p style="margin: 0px; color: #666; font-size: 12px; text-align:
left; font-family: Arial, Helvetica, sans-serif;">Geschäftsführer:
Dr. Wolfgang Eckstein, Dr. Olaf Munkelt<br>
Amtsgericht München HRB 114695</p>
<p style="margin: 0px; color: #666; font-size: 12px; text-align:
left; font-family: Arial, Helvetica, sans-serif;"> </p>
<img
src="https://www.mvtec.com/fileadmin/Redaktion/newsletter/mail-signature/mvtec-logo-line.png"
alt="MVTec Software GmbH Logo"></div>
</div>
</body>
</html>