Clang uses 4.2.1 as a default GCC version.
For projects that rely on the GCC version, this can be a problem, e.g.
#if __GNUC__ < 5 #error "Incompatible compiler" #endif
This patch extracts the GCC version from the driver output and adds -fgnuc-version=<extracted version> compile option to ensure that the values of GCC macros are correct.