-mkernel enables -fno-builtin and -fno-common by default, but allows -fbuiltin and -fcommon to override that. However "-fbuiltin -fno-builtin" is treated the same as "-fbuiltin" which is wrong, so fix that. Also fixes similar behaviour when -fno-common is default.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
The change looks right to me (but I'm not in a position to approve committing).
[I do have to admit I don't understand why -mkernel && isCXX() => -fapple-kext. But that's part of the original behaviour and has been preserved.]