diff options
author | Christoph Reiter <reiter.christoph@gmail.com> | 2020-05-10 23:36:15 +0200 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2020-05-11 14:53:25 -0700 |
commit | d7e20b1543499b516f424ac3a831f402a884714d (patch) | |
tree | b3c647ba4c4dd49482cdd26101191a9828ae51a6 /docs/markdown/SourceSet-module.md | |
parent | efb86088bcf8960db440eadcd11c0e073c80ab52 (diff) | |
download | meson-d7e20b1543499b516f424ac3a831f402a884714d.zip meson-d7e20b1543499b516f424ac3a831f402a884714d.tar.gz meson-d7e20b1543499b516f424ac3a831f402a884714d.tar.bz2 |
Fix builtin check in has_function() with GCC 10 on Windows
The builtin check had a special case that if a header was provided and
the function wasn't defined, it would ignore the builtin to avoid
non-functional builtins (for example __builtin_posix_memalign in MSYS2).
GCC 10 gained support for __has_builtin() which now skipps this check
and because __has_builtin(__builtin_posix_memalign) returns true the
non functional builtin is now reported as available.
To get the old behaviour back move the special case in front of the actual
availability check.
Fixes #7113
Diffstat (limited to 'docs/markdown/SourceSet-module.md')
0 files changed, 0 insertions, 0 deletions