<div dir="ltr"><div><div><div>Hi,<br><br></div>thanks for reply.<br><br></div>The problem is not in building Qt Creator itself, the problem is in applications built *by* Qt Creator (i.e. create new sample Sailfish application in Qt Creator and build in Debug mode).<br><br></div><div>Btw I suddenly have a thought that it might be the RPM builder that does so, didn't check yet though.<br><br></div><div>Cheers<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-03-30 15:41 GMT+06:00 Andrey Kozhevnikov <span dir="ltr"><<a href="mailto:coderusinbox@gmail.com" target="_blank">coderusinbox@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
Hello,<br>
<br>
i found this:<br>
<a href="https://github.com/sailfish-sdk/sailfish-qtcreator/blob/next/src/libs/cplusplus/cplusplus.pro" target="_blank">https://github.com/sailfish-sdk/sailfish-qtcreator/blob/next/src/libs/cplusplus/cplusplus.pro</a><br>
<br>
<div>30.03.2015 14:35, Dmitriy Purgin пишет:<br>
</div>
<blockquote type="cite"><div><div class="h5">
<div dir="ltr">
<div>
<div>
<div>
<div>
<div>Hi again,<br>
<br>
</div>
I've tried to invoke remote qmake from terminal and it
worked as expected. I've set up Mer-related environment
variables to the same values as build environment in Qt
Creator, then invoked qmake from mer-sdk-tools with the
same parameters as Qt Creator shows in Compile output.
Qmake of mer-sdk-tools does effectively call merssh
passing qmake params. The generated Makefiles do not
contain -O2 switch for debug builds just as expected. I
could go this way but Qt Creator seem to always
regenerate makefiles.<br>
<br>
</div>
The funny thing is that I've built sailfish-qtcreator and
traced the build steps using debugger. It seems that qmake
invokation doesn't contain any extra params, in other
words it is the same call as I did on terminal. But
nevertheless the output Makefiles did contain CFLAGS
mentioned in my previous mail.<br>
<br>
</div>
I'd really appreciate if anyone could give me some direction
to look into.<br>
<br>
</div>
Cheers<br>
</div>
Dmitriy Purgin<br>
<br>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">2015-03-29 0:30 GMT+06:00 Dmitriy
Purgin <span dir="ltr"><<a href="mailto:dpurgin@gmail.com" target="_blank">dpurgin@gmail.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">
<div>
<div>
<div>
<div>
<div>Hi all,<br>
<br>
</div>
is there any way to prevent optimization switch
-O2 being set when Makefile is generated for debug
builds? I've looked into linux-g++-32 and its
includes of Mer SDK but didn't find any clues
regarding why -O2 is set for debug build. This
switch as well as -g are nicely managed by
QMAKE_CXXFLAGS_RELEASE and QMAKE_CXXFLAGS_DEBUG
(-O2 appears in former, -g appears in latter) but
for some reason they both end up in the command
line of actual compilation. I've grepped
everything in mkspecs directory recursively but it
seems like -O2 and -g are always divided into
_RELEASE and _DEBUG respectively.<br>
<br>
</div>
Then I've added -d switch to qmake call on the
Project page of sailfish-qtcreator and after parsing
default_pre.prf it outputs the following lines:<br>
<br>
<p style="margin:0px;text-indent:0px"><span style="color:rgb(170,0,0)">DEBUG 1: (command
line):65535: QMAKE_CFLAGS_RELEASE := -O2 -g
-pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector --param=ssp-buffer-size=4
-Wformat -Wformat-security -m32 -march=i486
-fasynchronous-unwind-tables</span></p>
<p style="margin:0px;text-indent:0px"><span style="color:rgb(170,0,0)">DEBUG 1: (command
line):65535: QMAKE_CFLAGS_DEBUG := -O2 -g -pipe
-Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector --param=ssp-buffer-size=4
-Wformat -Wformat-security -m32 -march=i486
-fasynchronous-unwind-tables</span></p>
<br>
</div>
does that mean that both -O2 and -g are forced
somewhere in Salifish SDK tools when calling qmake? Is
there any way to turn off -O2 for debug builds?<br>
<br>
</div>
Cheers<span><font color="#888888"><br>
</font></span></div>
<span><font color="#888888">Dmitriy Purgin<br>
</font></span></div>
</blockquote>
</div>
<br>
</div>
<br>
<fieldset></fieldset>
<br>
</div></div><pre>_______________________________________________
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to <a href="mailto:devel-unsubscribe@lists.sailfishos.org" target="_blank">devel-unsubscribe@lists.sailfishos.org</a></pre>
</blockquote>
<br>
</div>
<br>_______________________________________________<br>
SailfishOS.org Devel mailing list<br>
To unsubscribe, please send a mail to <a href="mailto:devel-unsubscribe@lists.sailfishos.org">devel-unsubscribe@lists.sailfishos.org</a><br></blockquote></div><br></div>