[fpc-pascal] Distinguishing between ARM and ARMHF at build time

Mark Morgan Lloyd markMLl.fpc-pascal at telemetry.co.uk
Sun Oct 11 18:45:56 CEST 2015


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]



More information about the fpc-pascal mailing list