<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Jul 15, 2015, at 6:00 PM, Rafael Espíndola <<a href="mailto:rafael.espindola@gmail.com" class="">rafael.espindola@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class="">I have just committed support to llvm-ar for creating thin archives.<br class="">The idea of thin archives is that they contain just the symbol table<br class="">and the path to find the original .o files.<br class=""><br class="">By locally making thin archives the default I was able to build<br class="">llvm+lld+clang with them. The total size of the .a files goes from<br class="">181,658,164 to 7,116,900 bytes.<br class=""></div></blockquote>Nice!<br class=""><blockquote type="cite" class=""><div class=""><br class="">Is there any way to do that with cmake without having to have a hacked<br class="">llvm-ar? All that is needed is for cmake to run<br class=""><br class="">.../llvm-ar cqT foo.a ....<br class=""><br class="">instead of<br class=""><br class="">.../llvm-ar cq foo.a ….<br class=""></div></blockquote>I found an answer, but its not much better than having a hacked up version of llvm-ar:</div><div><a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__stackoverflow.com_questions_5659225_how-2Dto-2Dset-2Dthe-2Doptions-2Dfor-2Dcmake-2Dar&d=AwMFaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=Mfk2qtn1LTDThVkh6-oGglNfMADXfJdty4_bhmuhMHA&m=Jpp1nE_QdPfy53TuYzax1tQ9vm54WtEfIxOzgPgQd20&s=tsgr0UMk83KCBHpabWCkl7li3BJKlRMW1wjGKpCoN7k&e=" class="">http://stackoverflow.com/questions/5659225/how-to-set-the-options-for-cmake-ar</a></div><div><br class=""></div><div>Cheers,</div><div>Pete<br class=""><blockquote type="cite" class=""><div class=""><br class="">Thanks,<br class="">Rafael<br class="">_______________________________________________<br class="">LLVM Developers mailing list<br class=""><a href="mailto:LLVMdev@cs.uiuc.edu" class="">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu" class="">http://llvm.cs.uiuc.edu</a><br class=""><a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" class="">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br class=""></div></blockquote></div><br class=""></body></html>