Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2023-10

make OPT= OPTFPC= NEWOPT=

4 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Martin Frb

What is the difference between those 3?

I came across OPTNEW here https://wiki.freepascal.org/LLVM

But now I am trying to play with the rather old fpc build script for the laz installer.
And it calls

%MAKEEXE% compiler_cycle PP=%RELEASE_PPC% >> %LOGFILE% 2>&1 %MAKEEXE% rtl_clean  PP=%COMPILER% >> %LOGFILE%
%MAKEEXE% rtl packages  PP=%COMPILER% OPT="-Ur -CX" >> %LOGFILE% %MAKEEXE% utils  PP=%COMPILER% OPT="-CX -XX -Xs"
DATA2INC=%SOURCE_DIR%\utils\data2inc >>
...

And giving it just OPT=.... does not seem to do the trick.

Oh, yes of course, ideally rewrite that old script... Well "someday" ....

Reply by email

Marco van de Voort
to Martin Frb

Op 6-10-2023 om 14:28 schreef Martin Frb via fpc-devel:

What is the difference between those 3?

OPT= always to my best knowledge

NEWOPT is opt only for later cycles and the rest, iow not for the first FPC bootstrap cycle (that might be started with an older compiler version).  So it is for additional options that are not supported by the bootstrap compiler, but are supported by the newer compiler.

I don't know an "OPTFPC", and no files grep for it in the FPC or lazarus repos ?

Show quoted text 19 lines
I came across OPTNEW here https://wiki.freepascal.org/LLVM But now I am trying to play with the rather old fpc build script for the laz installer. And it calls %MAKEEXE% compiler_cycle PP=%RELEASE_PPC% >> %LOGFILE% 2>&1 %MAKEEXE% rtl_clean  PP=%COMPILER% >> %LOGFILE% %MAKEEXE% rtl packages  PP=%COMPILER% OPT="-Ur -CX" >> %LOGFILE% %MAKEEXE% utils  PP=%COMPILER% OPT="-CX -XX -Xs" DATA2INC=%SOURCE_DIR%\utils\data2inc >> ... And giving it just OPT=.... does not seem to do the trick. Oh, yes of course, ideally rewrite that old script... Well "someday" ....

.... but I always use the toplevel makefile. I haven't tried to manually compile parts of the project for non debug purposes like that  since FPC 1.0.x days......  Even the already old buildfaq doesn't document such partial compiling.

Reply by email

Martin Frb
to Marco van de Voort
Marco van de Voort wrote 11 lines
Op 6-10-2023 om 14:28 schreef Martin Frb via fpc-devel: > What is the difference between those 3? OPT= always to my best knowledge NEWOPT is opt only for later cycles and the rest, iow not for the first FPC bootstrap cycle (that might be started with an older compiler version).  So it is for additional options that are not supported by the bootstrap compiler, but are supported by the newer compiler.

Thanks.

I may have found why it didn't work. Two OPT for one make. pebkac.

Reply by email

Kostas Michalopoulos
to Marco van de Voort: Op 6-10-2023 om 14:28 schreef Martin Frb via fpc-devel: OPT= always to my best knowledge…
Marco van de Voort wrote 7 lines
OPT= always to my best knowledge NEWOPT is opt only for later cycles and the rest, iow not for the first FPC bootstrap cycle (that might be started with an older compiler version).  So it is for additional options that are not supported by the bootstrap compiler, but are supported by the newer compiler.

It might be a good idea to have a wiki page describing all the variables that go in the makefile, i always end up using Google to search the wiki for make invocations of the the partial variables i remember.

Kostas

Reply by email