forked from LuaJIT/LuaJIT
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(cherry-picked from commit 384d6d5) 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 b6d2852 ('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. Maxim Kokryashkin: * added the description for the problem Part of tarantool/tarantool#9145
- Loading branch information
1 parent
7d5901d
commit 968e510
Showing
7 changed files
with
8 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters