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 <andre...@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