aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/modules/qt5.py
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2016-12-06 23:59:49 +0530
committerJussi Pakkanen <jpakkane@gmail.com>2016-12-10 23:18:17 +0200
commitbe04aa2a0b00d123aae78da2448a216f7e3201b9 (patch)
tree3bd6fa65412250ba4daa201a5635f83721a4eb57 /mesonbuild/modules/qt5.py
parentc75b5886da31c97e991a4458fc9bcb41ed149ecd (diff)
downloadmeson-be04aa2a0b00d123aae78da2448a216f7e3201b9.zip
meson-be04aa2a0b00d123aae78da2448a216f7e3201b9.tar.gz
meson-be04aa2a0b00d123aae78da2448a216f7e3201b9.tar.bz2
has_function: Fix checking for builtins with includes
We were checking for builtins explicitly like this because the ordinary checks don't work for builtins at all. We do exactly the same check as Autoconf and it doesn't work with Autoconf either (Autoconf is broken!) So now we check for it in two ways: if there's no #include in prefix, we check if `__builtin_symbol` exists (has_function allows checking for functions without providing includes). If there's a #include, we check if `symbol` exists. The old method was causing problems with some buggy toolchains such as MSYS2 which define some builtins in the C library but don't expose them via headers which meant that `__builtin_symbol` would be found even though `symbol` is not available. Doing this allows people to always get the correct answer as long as they specify the includes that are required to find a function while also not forcing people to always specify includes to find a function which is cumbersome. Closes #1083
Diffstat (limited to 'mesonbuild/modules/qt5.py')
0 files changed, 0 insertions, 0 deletions