Per-architecture -D options?
Per-architecture -D options?
- Subject: Per-architecture -D options?
- From: Dave McCaldon <email@hidden>
- Date: Fri, 10 Feb 2006 11:41:55 -0500
We have a #define that we use across many platforms, MY_BIG_ENDIAN, for big endian platforms, we pass it via -D in the makefile. For Universal Builds, this of course complicates things because all of the -D args get passed to both compiler passes (i.e. the one for ppc and the one for i386).
Is there a way to have architecture specific -D options, for example:
gcc .... -DMY_BIG_ENDIAN_ppc -DMY_LITTLE_ENDIAN_i386
Which will turn into -DMY_BIG_ENDIAN for PPC and -DMY_LITTLE_ENDIAN for Intel?
I'm trying to avoid having to change any code (we have lots of source files ...)!
Thanks!
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden