<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<br class="">
<div><br class="">
<blockquote type="cite" class="">
<div class="">On Oct 21, 2019, at 14:16, Mehdi AMINI <<a href="mailto:joker.eph@gmail.com" class="">joker.eph@gmail.com</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class=""><br class="Apple-interchange-newline">
<br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 16px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class="">
<div class="gmail_quote" style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 16px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;">
<div dir="ltr" class="gmail_attr">On Sun, Oct 20, 2019 at 4:21 PM Jie Zhou via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org" class="">llvm-dev@lists.llvm.org</a>> wrote:<br class="">
</div>
<blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); padding-left: 1ex;">
<div style="word-wrap: break-word; line-break: after-white-space;" class="">Dear all,
<div class=""><br class="">
</div>
<div class="">I’m developing Clang&LLVM on MacOS Catalina 10.15.</div>
<div class="">Now every time I "<font face="Arial" class="">make clang"</font>, the building systems rebuilds</div>
<div class="">all the .inc files generated by cmake,</div>
</div>
</blockquote>
<div class=""><br class="">
</div>
<div class="">Are you saying that if you re-run `make clang` immediately after the first invocation complete you see these files rebuilt? You're not changing anything in the repo or running `git pull` (or equivalent)? This would really not be expected.</div>
</div>
</div>
</blockquote>
<div><br class="">
</div>
Yes the tablegen files get recompiled immediately after I run a `make clang`. I checked on a Ubuntu and did not see the same behavior.</div>
<div>But luckily Joan's suggestion works: the -DLLVM_OPTIMIZED_TABLEGEN for cmake will do the trick.</div>
<div><br class="">
</div>
<div>- Jie<br class="">
<blockquote type="cite" class="">
<div class="">
<div class="gmail_quote" style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 16px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;">
<div class="">-- </div>
<div class="">Mehdi</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class=""> </div>
<blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); padding-left: 1ex;">
<div style="word-wrap: break-word; line-break: after-white-space;" class="">
<div class="">which essentially</div>
<div class="">rebuilds all the tablegen files in llvm, although I did not</div>
<div class="">change any of the tablegen files. The building is unnecessary</div>
<div class="">and slow, especially when it builds the X86GenSubtargetInfo.inc.</div>
<div class="">Is there a way to prevent cmake generating Makefiles that</div>
<div class="">rebuilds all the tablegen files?</div>
<div class=""><br class="">
</div>
<div class="">Here is my command line to run cmake for generating Makefiles:</div>
<div class=""><br class="">
</div>
<div class="">cmake -G “Unix Makefiles” -DLLVM_TARGETS_TO_BUILD=“X86" -DCMAKE_BUILD_TYPE=Debug $(LLVM_SRC)</div>
<div class=""><br class="">
</div>
<div class="">The cmake version is 3.13.4. And I did not experience the same behavior on a Linux.</div>
<div class=""><br class="">
</div>
<div class="">Thanks,</div>
<div class="">- Jie</div>
</div>
_______________________________________________<br class="">
LLVM Developers mailing list<br class="">
<a href="mailto:llvm-dev@lists.llvm.org" target="_blank" class="">llvm-dev@lists.llvm.org</a><br class="">
<a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.llvm.org_cgi-2Dbin_mailman_listinfo_llvm-2Ddev&d=DwMFaQ&c=kbmfwr1Yojg42sGEpaQh5ofMHBeTl9EI2eaqQZhHbOU&r=KAtyTEI8n3FritxDpKpR7rv3VjdmUs0luiVKZLb_bNI&m=a6d-_XqSI-3_vhs7WPW2QDFf8_o0tG-HnAow9qGcbys&s=Y5yX8hc8QmLTgMtpKpLop-queU5nUZ7pJXeHoGDxJ7I&e=" rel="noreferrer" target="_blank" class="">https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a></blockquote>
</div>
</div>
</blockquote>
</div>
<br class="">
</body>
</html>