[fpc-devel] Possible copy-paste error in fpc.cfg template

Maxim Ganetsky ganmax at narod.ru
Wed Jul 19 15:27:13 CEST 2023


Hello.

While looking at fpc.cfg created by latest FPC 3.3.1 Linux .sh 
installer, I noticed the following section in it:

# never need cross-prefix when targeting the JVM
|
# (no native compiler, always cross-compiling)
||
#ifdef cpujvm
||
#undef NEEDCROSSBINUTILS
||
#endif
||

||
# for android cross-prefix is set by compiler
||
#ifdef android
||
#undef NEEDCROSSBINUTILS
||
#endif
||

||
# never need cross-prefix when targeting the i8086
||
# (no native compiler, always cross-compiling)
||
#ifdef cpui8086
||
#undef NEEDCROSSBINUTILS
||
#endif
||

||
# never need cross-prefix when targeting the i8086
||
# (no native compiler, always cross-compiling)
||
#ifdef cpujvm
||
#undef NEEDCROSSBINUTILS
|#endif|
|

|The last clause in it seems to be a result of some copy-paste error: 
its comment erroneously refers to i8086 (|||which has already been 
checked|), while IFDEF checks for cpujvm, which has already been checked 
too.
|

-- 
Best regards,
  Maxim Ganetskymailto:ganmax at narod.ru
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20230719/6ff843d3/attachment.htm>


More information about the fpc-devel mailing list