1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright 2019 Mellanox Technologies, Ltd
4 if not (is_linux or (is_windows and is_ms_linker))
6 reason = 'only supported on Linux and Windows build with clang'
10 deps += ['hash', 'pci', 'bus_pci', 'bus_auxiliary', 'net', 'eal', 'kvargs']
19 'mlx5_common_utils.c',
24 '-Wno-strict-prototypes',
27 '-D_XOPEN_SOURCE=600',
29 foreach option:cflags_options
30 if cc.has_argument(option)
34 if get_option('buildtype').contains('debug')
35 cflags += [ '-pedantic', '-DPEDANTIC' ]
37 cflags += [ '-UPEDANTIC' ]