]> git.droids-corp.org - dpdk.git/blobdiff - lib/meson.build
build: fix for host clang and cross gcc
[dpdk.git] / lib / meson.build
index 9d11571f9250f771ec12fb21d9873df420798b0a..fefb3605db269f383677b77b94db6105e1de1933 100644 (file)
@@ -34,6 +34,10 @@ foreach l:libraries
        headers = []
        includes = []
        cflags = machine_args
+       if cc.has_argument('-Wno-format-truncation')
+           cflags += '-Wno-format-truncation'
+       endif
+
        objs = [] # other object files to link against, used e.g. for
                  # instruction-set optimized versions of code