diff options
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/meson.build b/meson.build index cbc37f7e..c29b4c98 100644 --- a/meson.build +++ b/meson.build @@ -62,6 +62,12 @@ cc_args = [ '-Werror=sequence-point', '-Werror=trigraphs', '-Werror=write-strings', +# Disable the memory allocating builtins as they may cause unexpected behavior +# with our framework. They *may* get optimized out in favor of a register or +# stack variable, making them effectively local. Local variables do not play +# well with longjmp which is heavily used by IGT framework. + '-fno-builtin-malloc', + '-fno-builtin-calloc', ] foreach cc_arg : cc_args |