<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Jan 27, 2015 at 5:44 PM, Nico Weber <span dir="ltr"><<a href="mailto:thakis@chromium.org" target="_blank">thakis@chromium.org</a>></span> wrote:<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 class=""><div class="gmail_extra"><div class="gmail_quote">On Tue, Jan 27, 2015 at 2:34 PM, Ehsan Akhgari <span dir="ltr"><<a href="mailto:ehsan.akhgari@gmail.com" target="_blank">ehsan.akhgari@gmail.com</a>></span> wrote:<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"><div class="gmail_extra"><div class="gmail_quote"><span>On Tue, Jan 20, 2015 at 4:32 PM, Nico Weber <span dir="ltr"><<a href="mailto:thakis@chromium.org" target="_blank">thakis@chromium.org</a>></span> wrote:<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"><div class="gmail_extra"><div class="gmail_quote"><span>On Tue, Jan 20, 2015 at 11:07 AM, Reid Kleckner <span dir="ltr"><<a href="mailto:rnk@google.com" target="_blank">rnk@google.com</a>></span> wrote:<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">I think Nico tweaked the dead strip settings last?</div></blockquote><div><br></div></span><div>I tested things in a static library build. Since you say something about libLLVMSupport.dylib, you're probably doing a shared build. From how I remember things looking, I don't think shared builds supported plugins ever in the make build – it's probably you'll have to tweak the build description to get this configuration to work. (Chromium only uses compiler plugins in static builds too.)</div></div></div></div></blockquote><div><br></div></span><div>How should I get a non-shared build?  That may be the source of this problem...</div></div></div></div></blockquote></div><br></div></span><div class="gmail_extra">Don't says -DBUILD_SHARED_LIBS=YES when running cmake, I think. It's off by default. What does CMakeCache.txt in your build directory store for that setting?</div><div class="gmail_extra"><br></div></div>
</blockquote></div><br></div><div class="gmail_extra">It's set to OFF.  I usually build with `cmake -GNinja -DCMAKE_BUILD_TYPE=RelWithDebInfo -DLLVM_TARGETS_TO_BUILD=X86 /path/to/llvm`.  I just did a clean rebuild and verified that I am still getting the following dylibs in objdir/lib:<br><br>lib/BugpointPasses.dylib lib/libLTO.dylib         lib/libc++.1.dylib       lib/libclang.3.7.dylib<br>lib/LLVMHello.dylib      lib/libc++.1.0.dylib     lib/libc++.dylib         lib/libclang.dylib<br clear="all"></div><div class="gmail_extra"><br>-- <br><div class="gmail_signature"><div dir="ltr">Ehsan<br></div></div>
</div></div>