<div dir="auto"><div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Alfred via fpc-devel <<a href="mailto:fpc-devel@lists.freepascal.org">fpc-devel@lists.freepascal.org</a>> schrieb am Mo., 25. Jan. 2021, 11:25:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">As there is (hopefully) more embedded and freertos coming to FPC trunk <br>
soon, I would like to ask for a feature.<br>
<br>
Would it be possible to emit the -Wp definition ?<br>
And perhaps also the -Cp definition ?<br>
<br>
Using embedded-freertos now requires me to use a -Wp setting and a <br>
manual definition of this -Wp setting also to be used in the sources. It <br>
would be nice to magically use the Wp-setting in the sources. And <br>
perhaps the Cp-setting also.<br>
<br>
Thanks for taking this into consideration.<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">This is already the case. </div><div dir="auto"><br></div><div dir="auto">The parameter passed as -CpXXX is available as define CPUXXX (in addition to e.g. CPUARM) and that passed as -WpXXX as FPC_MCU_XXX (and the selected FPU (-CfXXX) is available as FPUXXX). </div><div dir="auto"><br></div><div dir="auto">You can see all active defines by invoking the compiler with -vc even without passing any source file. </div><div dir="auto"><br></div><div dir="auto">Regards, </div><div dir="auto">Sven </div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
</blockquote></div></div></div>