<div dir="ltr">&gt; <span style="color:rgb(0,0,0);font-family:sans-serif;font-size:16px;text-align:justify">Do not add flags to export symbols from executables without the </span><span class="gmail-target" id="gmail-index-0-prop_tgt:ENABLE_EXPORTS" style="color:rgb(0,0,0);font-family:sans-serif;font-size:16px;text-align:justify"></span><a class="gmail-reference gmail-internal" href="https://cmake.org/cmake/help/v3.4/prop_tgt/ENABLE_EXPORTS.html#prop_tgt:ENABLE_EXPORTS" title="ENABLE_EXPORTS" style="color:rgb(53,95,124);text-decoration:none;font-family:sans-serif;font-size:16px;text-align:justify"><code class="gmail-xref gmail-cmake gmail-cmake-prop_tgt gmail-docutils gmail-literal" style="background-color:transparent;padding:0px 1px;font-size:0.95em;font-weight:bold"><span class="gmail-pre">ENABLE_EXPORTS</span></code></a><span style="color:rgb(0,0,0);font-family:sans-serif;font-size:16px;text-align:justify"> target property.<br><br>set_target_properties(${swift_binaries} properties ENABLE_EXPORTS 1)  ?</span><div><span style="color:rgb(0,0,0);font-family:sans-serif;font-size:16px;text-align:justify">I don&#39;t know if it&#39;s this simple though.</span></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Oct 25, 2016 at 8:51 PM, rintaro ishizaki via swift-dev <span dir="ltr">&lt;<a href="mailto:swift-dev@swift.org" target="_blank">swift-dev@swift.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi all,<br>I&#39;ve noticed recent build of swift compiler doesn&#39;t show the stack dump on crash.<br><br>Here is the result with October 25, 2016 snapshot.<br><a href="https://gist.github.com/rintaro/cb694898821fbbe8b02734862eb69534" target="_blank">https://gist.github.com/<wbr>rintaro/<wbr>cb694898821fbbe8b02734862eb695<wbr>34</a><br><br>On macOS, the dump completely doesn&#39;t show up.<br>On Linux, the dump shows up, but without symbols.<br><br>As for Linux, I figured out that it&#39;s because of recent change in CMakeList.txt<br>cmake_minimum_required(VERSION 3.4.3)<br>Specifically, the policy change of CMP0065<br><a href="https://cmake.org/cmake/help/v3.4/policy/CMP0065.html" target="_blank">https://cmake.org/cmake/help/<wbr>v3.4/policy/CMP0065.html</a><br>backtrace_symbols_fd() needs symbols exported.<div><br><div>As for macOS, I&#39;m not sure why.</div><div><br></div><div>I don&#39;t know what is the right way to fix this.</div></div><div>cmake_policy(SET CMP0065 OLD)</div><div>would fix the Linux build but ...</div><div><br></div><div>Any thought?</div></div>
<br>______________________________<wbr>_________________<br>
swift-dev mailing list<br>
<a href="mailto:swift-dev@swift.org">swift-dev@swift.org</a><br>
<a href="https://lists.swift.org/mailman/listinfo/swift-dev" rel="noreferrer" target="_blank">https://lists.swift.org/<wbr>mailman/listinfo/swift-dev</a><br>
<br></blockquote></div><br></div>