summaryrefslogtreecommitdiff
path: root/xmake/modules/core/tools/cl.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/modules/core/tools/cl.lua')
-rw-r--r--xmake/modules/core/tools/cl.lua4
1 files changed, 2 insertions, 2 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]