[cfe-commits] [PATCH] Add -fobjc-direct-class-refs
Jonathan Schleifer
js at webkeks.org
Tue May 15 09:34:26 PDT 2012
Am 15.05.2012 um 00:37 schrieb John McCall:
> I just don't want it to be a command-line option.
I can think of advantages of having it as a command line option, though:
If a new runtime emerges, it does not need to patch clang, but instead it can use the -f switches. And it also means if a runtime gains a new feature, it does not need to patch clang. I can understand that you don't want to have a long list of options that are required in order to work with the runtime, so I have another proposal:
What about introducing a new -fobjc-runtime-features=foo,bar,baz with an alias for already known runtimes?
For example, you could specify -fobjc-runtime-features=direct-class-refs,non-fragile-abi. But as an alias for these two, you could also specify -fobjc-runtime-features=gnustep-1.0.
Any comments on this?
--
Jonathan
More information about the cfe-commits
mailing list