diff options
author | Florian Müllner <fmuellner@gnome.org> | 2017-05-28 10:47:50 +0200 |
---|---|---|
committer | Florian Müllner <fmuellner@gnome.org> | 2017-06-11 21:48:15 +0200 |
commit | a3dda095bc6bd3725984daab3cfa02cb90d6bf21 (patch) | |
tree | 4a1608973cb71f60ac399a1123a82089620c65db /mesonbuild/backend/ninjabackend.py | |
parent | 4b8dc3b7463fa2512d58ca3f65f8eaddfd126ff5 (diff) | |
download | meson-a3dda095bc6bd3725984daab3cfa02cb90d6bf21.zip meson-a3dda095bc6bd3725984daab3cfa02cb90d6bf21.tar.gz meson-a3dda095bc6bd3725984daab3cfa02cb90d6bf21.tar.bz2 |
gnome: Guard all cflags passed to g-ir-scanner
While g-ir-scanner's compatible -I and -D flags cover what most dependencies
use, there's no guarantee that a dependency's cflags don't include more
exotic flags that conflict with the tool's own options.
For a real world example, mozjs-38 has '-include some-header-file.h', which
translates to '--include nclude another-file-to-scan.h' for the scanner;
unless for some reason there's an 'nclude' GIR available on the system,
the target will thus fail.
For this purpose, g-ir-scanner allows explicitly marking some flags as
preprocessor/compiler flags by guarding them with --cflags-begin and
--cflags-end. Make sure it is used this for all cflags, not only for
global and project flags.
Diffstat (limited to 'mesonbuild/backend/ninjabackend.py')
0 files changed, 0 insertions, 0 deletions