<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Il 04/12/23 17:48, Michael Van Canneyt via lazarus ha scritto:<br>
</p>
<blockquote type="cite"
cite="mid:d88b6ff8-b6eb-57c1-c2d-46e66dfba8d3@freepascal.org">
<blockquote type="cite" style="color: #007cff;">Is that switch
also available for startlazarus? <br>
So it can be specified inside the desktop file for the GUI menu?
<br>
<br>
Like this: <br>
Exec=/home/bosse/devtools/lazarus/2.2.4/startlazarus
PP=$HOME/bin/ppcarm <br>
--pcp=<i class="moz-txt-slash"><span class="moz-txt-tag">/</span>home/bosse<span
class="moz-txt-tag">/</span></i>.lazarus_2.2.4 %f <br>
</blockquote>
<br>
Since in the config files inĀ home/bosse/.lazarus_2.2.4 there is
already a compiler <br>
specified, it would be useless to be able to specify it again. <br>
</blockquote>
<p>In my experience lazarus doesn't always honor the compiler
settings in the config files.</p>
<p>My Mac supports both the aarch64 native architecture and the
x86_64 architecture (via Rosetta) and you may specify in compiler
options the target architecture for the applications. But it works
only for the target application.<br>
</p>
<p>You cannot rebuild lazarus for an architecture different from the
one of your lazarus binary. It will properly compile all the
required package for the target architecture you specified, but
when it comes to compiling lazarus itself, instead of calling fpc,
it will call directly the ppca64 or ppcx64 compiler for the
current architecture of Lazarus, which of course will reject the
PP= option!</p>
<p>The only way is to rebuild Lazarus from command line (make clean
useride ..etc) specifying both OPT="-Paarch<i>whatever .." </i><b>and
</b>PP=ppc<i>whatever. </i>OPT= makes the makefile scripts happy,
while PP= force the usage of the good compiler instead of the
default one.</p>
<p>Just my two cents.</p>
<p>Giuliano<br>
</p>
<pre class="moz-signature" cols="72">--
Do not do to others as you would have them do to you.They might have different tastes.</pre>
</body>
</html>