• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Passing XCode environmnt variables to gcc
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Passing XCode environmnt variables to gcc


  • Subject: Passing XCode environmnt variables to gcc
  • From: Daniel Cabrini Hauagge <email@hidden>
  • Date: Fri, 23 Jul 2010 11:48:10 -0400

Hi all,

This probably has been brought up before but I couldn't find it
anywhere so please help me out here. I want to pass an environment
variable that XCode defines to gcc with the "Other C Flags" option.
This is what I'm trying without luck

-D__MYVAR__=$(PROJECT_NAME)

The problem seems to be that $(PROJECT_NAME) gets evaluated right
away, and since we're not building the project it has not been defined
yet. Any ideas?

Thanks,

Daniel
 _______________________________________________
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

  • Prev by Date: Re: Base SDK v Deployment Target
  • Next by Date: Older iPhone SDK's and Xcode 3.2.3
  • Previous by thread: Re: Creating app file with my binary files
  • Next by thread: Older iPhone SDK's and Xcode 3.2.3
  • Index(es):
    • Date
    • Thread