common/mlx5: enable compilation on Windows
authorOphir Munk <ophirmu@nvidia.com>
Tue, 12 Jan 2021 12:58:39 +0000 (14:58 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 14 Jan 2021 09:12:37 +0000 (10:12 +0100)
Enable mlx5 common driver on Windows with clang compilation.

Signed-off-by: Ophir Munk <ophirmu@nvidia.com>
Signed-off-by: Tal Shnaiderman <talshn@nvidia.com>
Acked-by: Matan Azrad <matan@nvidia.com>
drivers/common/mlx5/meson.build

index 26cee06..03e3e7b 100644 (file)
@@ -1,9 +1,9 @@
 # SPDX-License-Identifier: BSD-3-Clause
 # Copyright 2019 Mellanox Technologies, Ltd
 
-if not is_linux
+if not (is_linux or (is_windows and is_ms_linker))
        build = false
-       reason = 'only supported on Linux'
+       reason = 'only supported on Linux and Windows build with clang'
        subdir_done()
 endif