NOTE: This commit is meant to go into the projects/clang350-import branch first!
For the import of clang 3.5.0, the logic in src.opts.mk for when to enable clang must be revised, to also check whether the "host compiler" is capable of C++11 support. This is important specifically for PowerPC builds. I have added this check to src.opts.mk.
Also, I tried making the if statements in src.opts.mk a little more readable, by just explicitly listing the different cases below each other, and clearly specifying all the DEFAULT_YES and DEFAULT_NO values per case.
E.g, the logic is now:
- If the host compiler is not C++11 capable, use gcc and disable clang
- On x86, enable clang, make it default cc, and disable gcc
- On little-endian ARM, enable clang, but not the full build, make it default cc, and disable gcc
- On PowerPC, enable clang, but enable gcc and make that the default cc
- On everything else, use gcc, and disable clang
Of course this could be amended later, if we get e.g. sparc64 or BE ARM working.