Sign in Join

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

Mailing lists / fpc-pascal / 2015-10

Distinguishing between ARM and ARMHF at build time

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

Mark Morgan Lloyd

I habitually use something like

           fpcV= 'Free Pascal v' + (*$I %FPCVERSION% *) ;
           fpcC= ' for ' + (*$I %FPCTARGETCPU% *) ;

to generate "about box" text for programs, and designate the binary name using the Lazarus IDE like

HeavyWethers-$(TargetCPU)-$(TargetOS)-$(LCLWidgetType)

Is there any way of determining that the target is actually an ARM HF (e.g. Raspberry Pi) rather than some other ARM, so that "HF" could be incorporated at compilation time or at the very least the about box text could be patched at runtime?

Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues]

Reply by email

Sven Barth
to Mark Morgan Lloyd

Am 11.10.2015 18:46 schrieb "Mark Morgan Lloyd" <

Show quoted text 8 lines
: I habitually use something like fpcV= 'Free Pascal v' + (*$I %FPCVERSION% *) ; fpcC= ' for ' + (*$I %FPCTARGETCPU% *) ; to generate "about box" text for programs, and designate the binary name

using the Lazarus IDE like

HeavyWethers-$(TargetCPU)-$(TargetOS)-$(LCLWidgetType) Is there any way of determining that the target is actually an ARM HF

(e.g. Raspberry Pi) rather than some other ARM, so that "HF" could be incorporated at compilation time or at the very least the about box text could be patched at runtime?

Maybe we could add a FPCTARGETABI include...

Refards,
Sven

Reply by email