Re: exporting env & build settings as preprocessor defines
Re: exporting env & build settings as preprocessor defines
- Subject: Re: exporting env & build settings as preprocessor defines
- From: Chris Espinosa <email@hidden>
- Date: Mon, 4 Sep 2006 00:15:31 -0700
On Sep 3, 2006, at 11:12 PM, Shaun Wexler wrote:
#if __x86_64__ # define SKW_BUILD_ARCH "x86_64" #elif __i386__ # define SKW_BUILD_ARCH "i386" #elif __ppc970__ # define SKW_BUILD_ARCH "ppc970" #elif __ppc64__ # define SKW_BUILD_ARCH "ppc64" #elif __ppc7400__ # define SKW_BUILD_ARCH "ppc7400" #elif __ppc__ # define SKW_BUILD_ARCH "ppc" #endif
I'd rather be able to import the build settings directly like this:
#define SKW_BUILD_ARCH STRINGIFY(($arch))
The easiest way is to use the Preprocessor Definitions build setting:
Preprocessor Definitions SKW_BUILD_ARCH=$(CURRENT_ARCH)
|
_______________________________________________
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