• 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: Using different compilers for C vs C++?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using different compilers for C vs C++?


  • Subject: Re: Using different compilers for C vs C++?
  • From: Jean-Daniel Dupas <email@hidden>
  • Date: Sat, 13 Feb 2010 11:26:39 +0100

Le 12 févr. 2010 à 23:11, Sean McBride a écrit :

> On 2/12/10 9:34 PM, Alexander von Below said:
>
>> You can change this on various levels, as usual with Xcode:
>>
>> - Globally
>> - Projectwide
>> - per Target
>> or
>> - per File
>>
>> Let's say, you want to change it per Target. Open your Target inspector
>> (command-option-e) and select the "Rules" Tab. There, you can change the
>> compiler for each kind of file.
>
> Alex,
>
> Thanks for this pointer!  I've also just read the "Build Rules" section
> of the Xcode docs.  Alas, I still can't get this to work.
>
> I've opened the target inspector and created a rule (which is at the top
> of the list)
> Process: C++ files
> using:   Rez
>
> I expect catastrophic failure.  Everything still builds.  I've tried
> other choices for 'using' and it seems to have no effect.  I have no
> other custom rules anywhere (as best as I can tell).
>
> Any ideas?

Yes, try with GCC and LLVM-GCC instead of trying with Rez.
I have redefined C rule tu use GCC-4.2 and add a C++ rule to use llvm-gcc and it works (if you want to know if it works, check the transcript )
Xcode built-in compiler have a list of supported file type, so it will probably refuse to use Rez fro c++ and fallback to the default setting.


 _______________________________________________
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

  • Follow-Ups:
    • Re: Using different compilers for C vs C++?
      • From: "Sean McBride" <email@hidden>
References: 
 >Using different compilers for C vs C++? (From: "Sean McBride" <email@hidden>)
 >Re: Using different compilers for C vs C++? (From: Alexander von Below <email@hidden>)
 >Re: Using different compilers for C vs C++? (From: "Sean McBride" <email@hidden>)

  • Prev by Date: Re: Xcode performance issues over time
  • Next by Date: disk space
  • Previous by thread: Re: Using different compilers for C vs C++?
  • Next by thread: Re: Using different compilers for C vs C++?
  • Index(es):
    • Date
    • Thread