<p>Harald Welte <strong>merged</strong> this change.</p><p><a href="https://gerrit.osmocom.org/13821">View Change</a></p><div style="white-space:pre-wrap">Approvals:
  Harald Welte: Looks good to me, approved
  Jenkins Builder: Verified

</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">regen-makefile: Use '-U 5' to split C++ files in multiple chunks<br><br>Particularly the C++ files generated for the rather comprehensive<br>3GPP asn.1 specified protocols like MAP, RANAP, ... result in very<br>large source files and subsequently g++ processes that consume well<br>into the multiple gigabyte range of memory.<br><br>Let's use the '-U 5' option to ask the ttcn3_compiler to split all<br>c++ files into 5 chunks, resulting in more files to compile, but<br>smaller individual files.<br><br>I also tested '-U type' before, but it was still grinding my 16GB RAM<br>laptop to unusable deep-swapping state when running 'make -j8' for<br>the IuCS extended MSC test suite.<br><br>Change-Id: I013b623e98d58a39dd7bb2b0db4a911725028535<br>---<br>M regen-makefile.sh<br>1 file changed, 2 insertions(+), 2 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/regen-makefile.sh b/regen-makefile.sh</span><br><span>index 77fcb6c..d2b747e 100755</span><br><span>--- a/regen-makefile.sh</span><br><span>+++ b/regen-makefile.sh</span><br><span>@@ -24,7 +24,7 @@</span><br><span>  USE_CCACHE=1</span><br><span> fi</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-ttcn3_makefilegen -p -l -f $*</span><br><span style="color: hsl(120, 100%, 40%);">+ttcn3_makefilegen -p -l -U 5 -f $*</span><br><span> </span><br><span> TITAN_VERSION=$(ttcn3_makefilegen -v 2>&1 |grep "Product number" |cut --delimiter="/" -f 2-| sed -e "s/[A-Z ]//g")</span><br><span> </span><br><span>@@ -60,5 +60,5 @@</span><br><span>       sed -i -e 's/^CXX = g++ $/CXX = env CCACHE_SLOPPINESS=time_macros ccache g++/' Makefile</span><br><span>      # Append the -D option to compiler flags. This option disables timestamps</span><br><span>    # inside comments in the generated C++ code which interfere with ccache.</span><br><span style="color: hsl(0, 100%, 40%);">-        sed -i -e 's/^COMPILER_FLAGS = \(.*\)/&-D/' Makefile</span><br><span style="color: hsl(120, 100%, 40%);">+      sed -i -e 's/^COMPILER_FLAGS = \(.*\)/& -D/' Makefile</span><br><span> fi</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/13821">change 13821</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/13821"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-ttcn3-hacks </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: merged </div>
<div style="display:none"> Gerrit-Change-Id: I013b623e98d58a39dd7bb2b0db4a911725028535 </div>
<div style="display:none"> Gerrit-Change-Number: 13821 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Harald Welte <laforge@gnumonks.org> </div>
<div style="display:none"> Gerrit-Reviewer: Harald Welte <laforge@gnumonks.org> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder (1000002) </div>