X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;ds=sidebyside;f=examples%2Fmeson.build;h=4ee7a111412bdefb2bd27fdf4a35e34cd2e7cea8;hb=d5df6159dddadedc1bdc12ec5f1a92a813dc94d3;hp=3d156849707c755b5328f9d7d3ad948e424316c3;hpb=273d2325b682e9e3a511093162c77529c22b28d3;p=dpdk.git diff --git a/examples/meson.build b/examples/meson.build index 3d15684970..4ee7a11141 100644 --- a/examples/meson.build +++ b/examples/meson.build @@ -18,12 +18,17 @@ else examples = get_option('examples').split(',') allow_skips = false # error out if we can't build a requested app endif +default_cflags = machine_args +if cc.has_argument('-Wno-format-truncation') + default_cflags += '-Wno-format-truncation' +endif foreach example: examples name = example build = true sources = [] allow_experimental_apis = false - cflags = machine_args + cflags = default_cflags + ext_deps = [execinfo] includes = [include_directories(example)] deps = ['eal', 'mempool', 'net', 'mbuf', 'ethdev', 'cmdline']