Re: Is GCC_ENABLE_CPP_RTTI = -frtti ?
Re: Is GCC_ENABLE_CPP_RTTI = -frtti ?
- Subject: Re: Is GCC_ENABLE_CPP_RTTI = -frtti ?
- From: Fritz Anderson <email@hidden>
- Date: Mon, 15 Oct 2012 10:39:33 -0500
On 15 Oct 2012, at 8:28 AM, Alexander von Below <email@hidden> wrote:
> just wanted to ask if anyone knows if
>
> GCC_ENABLE_CPP_RTTI = YES is equivalent to -frtti, and consequently GCC_ENABLE_CPP_RTTI = NO is equivalent to -fno-rtti
Select the matching line in the Build Settings tab of the Target or Project editor, and check Quick Help (open the Utility area, on the right, and select the second tab). At the end of the description, it will tell you what the build variable and compiler flag are.
I notice that GCC_ENABLE_CPP_RTTI is said to correspond to -fno-rtti. Google tells me that -frtti is the default. I assume the flag is set only if GCC_ENABLE_CPP_RTTI is NO.
> Furthermore, should I stick with a GCC_ prefixed setting even though we are moving to clang?
Abandoning the GCC_ prefix would break tens of thousands of developer scripts. It's not a trademark, and gcc/clang never see the GCC_ string; Apple can use whatever it wants for its build-setting keys. I wouldn't change before Apple told me that the CLANG_ prefix even existed.
— F
--
Fritz Anderson -- Xcode 4 Unleashed: 4.5 supplement in the works -- <http://x4u.manoverboard.org/>
_______________________________________________
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