<div dir="ltr"><div class="gmail_extra"><div dir="ltr"><span style="color:rgb(0,0,0);font-family:sans-serif;font-size:16px;text-align:justify">> set_target_properties(${swift_<wbr>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't know if it's this simple though.</span></div><div><span style="color:rgb(0,0,0);font-family:sans-serif;font-size:16px;text-align:justify"><br></span></div><div style="text-align:justify">Yeah, that should work as well.</div><div style="text-align:justify">But, I'm not sure which tools should be `ENABLE_EXPORT`ed.</div><div style="text-align:justify"><br></div><div style="text-align:justify"><br></div></div></div><div class="gmail_extra"><div class="gmail_quote">2016-10-27 3:04 GMT+09:00 Flamedoge <span dir="ltr"><<a href="mailto:code.kchoi@gmail.com" target="_blank">code.kchoi@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">> <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-m_-1336714421523120201gmail-target" id="gmail-m_-1336714421523120201gmail-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-m_-1336714421523120201gmail-reference gmail-m_-1336714421523120201gmail-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" target="_blank"><code class="gmail-m_-1336714421523120201gmail-xref gmail-m_-1336714421523120201gmail-cmake gmail-m_-1336714421523120201gmail-cmake-prop_tgt gmail-m_-1336714421523120201gmail-docutils gmail-m_-1336714421523120201gmail-literal" style="background-color:transparent;padding:0px 1px;font-size:0.95em;font-weight:bold"><span class="gmail-m_-1336714421523120201gmail-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_<wbr>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't know if it's this simple though.</span></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="gmail-h5">On Tue, Oct 25, 2016 at 8:51 PM, rintaro ishizaki via swift-dev <span dir="ltr"><<a href="mailto:swift-dev@swift.org" target="_blank">swift-dev@swift.org</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div class="gmail-h5"><div dir="ltr">Hi all,<br>I've noticed recent build of swift compiler doesn'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/rintar<wbr>o/cb694898821fbbe8b02734862eb6<wbr>9534</a><br><br>On macOS, the dump completely doesn't show up.<br>On Linux, the dump shows up, but without symbols.<br><br>As for Linux, I figured out that it'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/v<wbr>3.4/policy/CMP0065.html</a><br>backtrace_symbols_fd() needs symbols exported.<div><br><div>As for macOS, I'm not sure why.</div><div><br></div><div>I don'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></div></div>______________________________<wbr>_________________<br>
swift-dev mailing list<br>
<a href="mailto:swift-dev@swift.org" target="_blank">swift-dev@swift.org</a><br>
<a href="https://lists.swift.org/mailman/listinfo/swift-dev" rel="noreferrer" target="_blank">https://lists.swift.org/mailma<wbr>n/listinfo/swift-dev</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div></div>