Sign in Join

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

Mailing lists / fpc-devel / 2014-03

-dREVINC

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

Thaddy

This: -dREVINC as an option to include the revision number in builds is very useful for trunk builders but it is not documented and doesn't work for Windows.
Is there a reason for that?

Reply by email

Jonas Maebe
to Thaddy
Thaddy wrote
This: -dREVINC as an option to include the revision number in builds is very useful for trunk builders but it is not documented and doesn't work for Windows. Is there a reason for that?

It's not documented because it's it was probably never intended for public use (many functionalities of the compiler's makefile are undocumented). Afaik that functionality work on all platforms, but you don't activate it by manually passing "-dREVINC". Instead, you have create an (empty) file called "revision.inc" in the compiler directory. The makefile will then automatically update it with the revision number of the current checkout when building the compiler, but it does require the svnversion binary to be in your path (or you can specify the full path via the SVNVERSION make flag)

Jonas

Reply by email