[PATCH v2 3/5] config: create top level variable cc_avx2_flags
Andre Muezerie
andremue at linux.microsoft.com
Wed Feb 26 02:06:54 CET 2025
Top level variable cc_avx2_flags was created and set according to the
compiler used. It is used in lower level directories.
Signed-off-by: Andre Muezerie <andremue at linux.microsoft.com>
---
config/x86/meson.build | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/config/x86/meson.build b/config/x86/meson.build
index 47a5b0c04a..941d4d921f 100644
--- a/config/x86/meson.build
+++ b/config/x86/meson.build
@@ -1,6 +1,12 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright(c) 2017-2020 Intel Corporation
+if is_ms_compiler
+ cc_avx2_flags = ['/arch:AVX2']
+else
+ cc_avx2_flags = ['-mavx2']
+endif
+
# get binutils version for the workaround of Bug 97
binutils_ok = true
if is_linux or cc.get_id() == 'gcc'
--
2.48.1.vfs.0.0
More information about the dev
mailing list