|
Ran
|
Files
89
|
Run time
5s
|
Badge
README BADGES
|
push
github
Fix Clang build. (cherry-picked from commit 384d6d56f) The `__GNUC__` macro signals that GNU extensions are supported by a compiler. Some versions of the clang compiler (clang 10.0.0 targeting the MSVC ABI, for example) may not define that macro. However, they still support the GNU extensions. This patch fixes the build for those compilers by checking the `__clang__` macro value alongside `__GNUC__`. Part of the patch relevant to 'lj_err.c' is omitted since all of the required changes were already backported in the scope of the patch b6d285214 ('Cleanup and enable external unwinding for more platforms.'). No tests were added since the issue is relevant for a very specific type of very old clang 10.0.0, which is not really relevant for us. However, clang builds are now added to our CI. Maxim Kokryashkin: * added the description for the problem Part of tarantool/tarantool#9145 Reviewed-by: Sergey Bronnikov <sergeyb@tarantool.org> Reviewed-by: Sergey Kaplun <skaplun@tarantool.org> Signed-off-by: Igor Munkin <imun@tarantool.org> (cherry picked from commit 8aaac1864)
5297 of 5952 branches covered (0.0%)
Branch coverage included in aggregate %.
20328 of 23201 relevant lines covered (87.62%)
689264.84 hits per line
| Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line | Branch Hits | Branch Misses |
|---|