diff options
author | Nirbheek Chauhan <nirbheek@centricular.com> | 2017-01-26 09:27:47 +0530 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek@centricular.com> | 2017-01-26 12:36:47 +0530 |
commit | 85b8e92bc447a13a19d42bc9ebe8758cd05be463 (patch) | |
tree | e03a3b98e698890a0ee2064163f3ce05b8fb1275 /run_unittests.py | |
parent | 748fe80423b56ea52a5dbb26f84cfedd5b416b8e (diff) | |
download | meson-85b8e92bc447a13a19d42bc9ebe8758cd05be463.zip meson-85b8e92bc447a13a19d42bc9ebe8758cd05be463.tar.gz meson-85b8e92bc447a13a19d42bc9ebe8758cd05be463.tar.bz2 |
compilers: Fix has_function check for builtins
Use a single check for both cases when we have includes and when we
don't. This way we ensure three things:
1. Built-in checks are 100% reliable with clang and on macOS since clang
implements __has_builtin
2. When the #include is present, this ensures that __builtin_func is not
checked for (because of MSYS, and because it is faster)
3. We fallback to checking __builtin_func when all else fails
Diffstat (limited to 'run_unittests.py')
0 files changed, 0 insertions, 0 deletions