Sign in Join

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

Mailing lists / lazarus / 2014-07

Implementation of TargetProcessor?

2 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

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

Den

Hi all,

Any way someone could implement TargetProcessor in the Conditionals area of the IDE? I want to select the appropriate Android NDK toolchain for my Android Library when the Developer selects which Target Processor (ARMV6, ARMV7, etc.) but have no way of checking automatically.. Currently my workaround is adding an addable Macro Definition for the TargetProcessor the Developer has to set manually.

As per Sven's earlier statement, FPC does define CPUxyz for the Processor, but no inclusion of a string, like {$I %TargetProcessor%} ..

EDIT: SO, as I was typing this email I thought to myself, why don't I just implement it?
So I did. :p .. The new Include is %FPCTARGETPROCESSOR% on the FPC side, and "TargetProcessor" Macro on the IDE side. Anyone else interested?

Sincerely,

Dennis Fehr

Reply by email

Sven Barth
to Den
"Den" wrote
As per Sven's earlier statement, FPC does define CPUxyz for the

Processor, but no inclusion of a string, like {$I %TargetProcessor%} ..

Don't forget that Lazarus seems to use -Op instead of -Cp which will not lead to the define to be set... :/ (and is also wrong independently of the define)

EDIT: SO, as I was typing this email I thought to myself, why don't I

just implement it?

So I did. :p .. The new Include is %FPCTARGETPROCESSOR% on the FPC side,

and "TargetProcessor" Macro on the IDE side. Anyone else interested?

I can't talk for Lazarus, but you could put the patch for FPC up on the bug tracker so I or some other dev could have a ,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20140709/1546467b/attachment.html>

Reply by email