summary refs log tree commit diff stats
path: root/util/memalign.c
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2022-02-26 18:07:19 +0000
committerPeter Maydell <peter.maydell@linaro.org>2022-03-07 13:14:59 +0000
commit8698343b867224c1742d75dfdc276061c5839dc8 (patch)
tree252ae6a4aab082176aa341b72b54984603ccc699 /util/memalign.c
parentbc0fecc1c2f2c70780e38b3f821dc5b89eed0716 (diff)
downloadfocaccia-qemu-8698343b867224c1742d75dfdc276061c5839dc8.tar.gz
focaccia-qemu-8698343b867224c1742d75dfdc276061c5839dc8.zip
meson.build: Don't misdetect posix_memalign() on Windows
Currently we incorrectly think that posix_memalign() exists on
Windows.  This is because of a combination of:

 * the msys2/mingw toolchain/libc claim to have a
   __builtin_posix_memalign when there isn't a builtin of that name
 * meson will assume that if you have a __builtin_foo that
   counts for has_function('foo')

Specifying a specific include file via prefix: causes meson to not
treat builtins as sufficient and actually look for the function
itself; see this meson pull request which added that as the official
way to get the right answer:
  https://github.com/mesonbuild/meson/pull/1150

Currently this misdectection doesn't cause problems because we only
use CONFIG_POSIX_MEMALIGN in oslib-posix.c; however that will change
in a following commit.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20220226180723.1706285-6-peter.maydell@linaro.org
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Diffstat (limited to 'util/memalign.c')
0 files changed, 0 insertions, 0 deletions