• 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
Re: Per-file compiler flags?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Per-file compiler flags?


  • Subject: Re: Per-file compiler flags?
  • From: Jens Miltner <email@hidden>
  • Date: Tue, 9 Mar 2004 23:44:56 +0100

Am 09.03.2004 um 22:58 schrieb Steve Sisak:

Is there a way to vary compiler flags on a per-file basis in Xcode?

My specific problem is that I have about a dozen files containing K&R C function definitions that I'd like to include in a project w/o turning off 'require prototypes' outside that group.

In the Inspector for a source file, you can specify additional compiler flags in the "Build" tab.
You'd need to find the appropriate compiler switches and I'm not sure whether it's possible to turn _off_ compiler switches set in the project-wide build settings...


Other than that, in theory you should be able to change the extension <-> language mapping but apparently, this is broken in 1.1 (and I'm not sure it'd be flexible enough to allow to distinguish between ANSI and K&C code).

HTH,
</jum>
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.


References: 
 >Per-file compiler flags? (From: Steve Sisak <email@hidden>)

  • Prev by Date: Per-file compiler flags?
  • Next by Date: Re: Target dependencies
  • Previous by thread: Per-file compiler flags?
  • Next by thread: Re: Per-file compiler flags?
  • Index(es):
    • Date
    • Thread