10 ms·
It's not only lld, the clang compiler has a similar issue. It pretends to be an old version of GCC (4.2) with the predefined macros __GNUC__ and __GNUC__MINOR__
by cesarb 9y ago
It's not only lld, the clang compiler has a similar issue. It pretends to be an old version of GCC (4.2) with the predefined macros __GNUC__ and __GNUC__MINOR__, since a lot of software check for the presence of the __GNUC__ macro or its value to enable modern features. That occasionally confuses software which expects features first introduced in gcc 4.1/4.2 to be present when these macros are defined (see for instance https://bugs.llvm.org/show_bug.cgi?id=16683 https://bugs.llvm.org/show_bug.cgi?id=16683 or https://bugs.llvm.org/show_bug.cgi?id=24682 https://bugs.llvm.org/show_bug.cgi?id=24682).