Sign in Join

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

Mailing lists / lazarus / 2016-01

Conditional Defines for Raspberry PI?

4 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

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

Donald Ziesig

Hi Everyone!

Are there any conditional defines that let me exclude PI-specific code when compiling for 64-bit amd linux (or vice-versa)?

I can define my own if necessary, but that is one more thing to worry about when switching machines.

Thanks,

Don Ziesig

Reply by email

Sven Barth
to Donald Ziesig
"Donald Ziesig" wrote
Hi Everyone! Are there any conditional defines that let me exclude PI-specific code

when compiling for 64-bit amd linux (or vice-versa)?

I can define my own if necessary, but that is one more thing to worry

about when switching machines.

Raspberry Pi is an ARM so you could check for CPUARM. 64-bit x86 Linux would be CPUX86_64 (for completeness: CPUI386 is for 32-bit x86).

Regards,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20160113/f4510f02/attachment.html>

Reply by email

Donald Ziesig
to Sven Barth
Sven Barth wrote 25 lines
Am 13.01.2016 17:03 schrieb "Donald Ziesig" < <mailto:>>: > > Hi Everyone! > > Are there any conditional defines that let me exclude PI-specific code when compiling for 64-bit amd linux (or vice-versa)? > > I can define my own if necessary, but that is one more thing to worry about when switching machines. Raspberry Pi is an ARM so you could check for CPUARM. 64-bit x86 Linux would be CPUX86_64 (for completeness: CPUI386 is for 32-bit x86). Regards, Sven -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Thanks - just what I needed.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20160113/75dffc1a/attachment.html>

Reply by email

leledumbo
to Sven Barth: when compiling for 64-bit amd linux (or vice-versa)? about when switching machines.…
Raspberry Pi is an ARM so you could check for CPUARM. 64-bit x86 Linux

would be CPUX86_64 (for completeness: CPUI386 is for 32-bit x86).

Also try to compile with -vc, it will list whatever the compiler defines for the target.

View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Conditional-Defines-for-Raspberry-PI-tp4046610p4046614.html Sent from the Free Pascal - Lazarus mailing list .

Reply by email