Repo Added
|
Files
89
|
Badge
Embed ▾
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>
5339 of 5972 branches covered (0.0%)
Branch coverage included in aggregate %.
20492 of 23293 relevant lines covered (87.97%)
2748696.01 hits per line
Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line | Branch Hits | Branch Misses |
---|
Builds | Branch | Commit | Type | Ran | Committer | Via | Coverage |
---|---|---|---|---|---|---|---|
6654598069 | gdb-fix | 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 exa... | push | fckxorg | github |
88.27 |