• 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
Custom Compiler Spec Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Custom Compiler Spec Question


  • Subject: Custom Compiler Spec Question
  • From: Salman Khilji <email@hidden>
  • Date: Tue, 09 Aug 2011 18:29:14 -0700

I am trying to write a custom spec file for a GCC based cross compiler targeting embedded Linux and got stuck at the following:

cc1plus: error: unrecognized command line option "-fconstant-cfstrings"

I started off by making a copy of the "GCC 4.2.xcplugin" in:

/Developer/Library/Xcode/PrivatePlugIns/Xcode3Core.ideplugin/Contents/SharedSupport/Developer/Library/Xcode/Plug-ins/

Next I took out from my new spec file any options that my compiler did not understand or I did not want.  For example, I did not want the "-isysroot" option, so I took out.

    {
        Name = SDKROOT;
        Type = Path;
        CommandLineFlag = "-isysroot";
    },

The problem is that I cannot find the "-fconstant-cfstrings" option anywhere in the spec file.  How does Xcode 4.1 decide which options to pass to the compiler?  Could it be that Xcode uses some hardcoded defaults to pass to the compiler?

I started my project by using a MacOS C++ Command Line Tool, but I am not if it makes a difference to usen iOS based project.

I know that I can write a wrapper bash script and take out the options I don't want, but I would rather do it the "right way." _______________________________________________
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: No global variables in XCode 4?
  • Next by Date: about pdf content parsing (Chinese or Korea or Japanese)
  • Previous by thread: Re: No global variables in XCode 4?
  • Next by thread: about pdf content parsing (Chinese or Korea or Japanese)
  • Index(es):
    • Date
    • Thread