Re: [Lazarus] Conditional Defines for Raspberry PI?

2016-01-13 Thread leledumbo
> 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 archive at Nabble.com.

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Conditional Defines for Raspberry PI?

2016-01-13 Thread 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

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Conditional Defines for Raspberry PI?

2016-01-13 Thread Sven Barth
Am 13.01.2016 17:03 schrieb "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.

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
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Conditional Defines for Raspberry PI?

2016-01-13 Thread Donald Ziesig

On 01/13/2016 11:29 AM, Sven Barth wrote:


Am 13.01.2016 17:03 schrieb "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.


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
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Thanks - just what I needed.
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus