diff options
| -rw-r--r-- | xmake/modules/core/tools/cl.lua | 4 | ||||
| -rw-r--r-- | xmake/modules/core/tools/gcc.lua | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/xmake/modules/core/tools/cl.lua b/xmake/modules/core/tools/cl.lua index 0e4426436..0f4012775 100644 --- a/xmake/modules/core/tools/cl.lua +++ b/xmake/modules/core/tools/cl.lua @@ -182,10 +182,10 @@ function nf_vectorext(self, extension) { sse = "-arch:SSE" , sse2 = "-arch:SSE2" - , ["sse4.2"] = "/d2archSSE42" + , ["sse4.2"] = "/d2archSSE42" -- the only undocumented way works, @see https://github.com/xmake-io/xmake/issues/3786 , avx = "-arch:AVX" , avx2 = "-arch:AVX2" - , avx512 = "-arch:AVX512" + , avx512 = "-arch:AVX512" -- for msvc 2019+ avx512 support , fma = "-arch:AVX2" } local flag = maps[extension] diff --git a/xmake/modules/core/tools/gcc.lua b/xmake/modules/core/tools/gcc.lua index e24153ff8..218fc73f0 100644 --- a/xmake/modules/core/tools/gcc.lua +++ b/xmake/modules/core/tools/gcc.lua @@ -174,7 +174,7 @@ function nf_vectorext(self, extension) , ["sse4.2"] = "-msse4.2" , avx = "-mavx" , avx2 = "-mavx2" - , avx512 = "-march=skylake-avx512" + , avx512 = "-march=skylake-avx512" -- @see https://github.com/xmake-io/xmake/issues/1613 , fma = "-mfma" , neon = "-mfpu=neon" } |
