summaryrefslogtreecommitdiff
path: root/xmake/modules/core/tools/cl.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2023-07-26 23:51:34 +0800
committerruki <[email protected]>2023-07-26 23:51:34 +0800
commit8eb5c2f3c4d1dd2124b7e43f71b259ff90b66893 (patch)
tree7109ef463a06625658dc85afda830821571ad8b6 /xmake/modules/core/tools/cl.lua
parent59c3c5d3a025ad3bed85f73f31de36f3094d1cc9 (diff)
add some comments
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]