summaryrefslogtreecommitdiff
path: root/xmake/modules/core/tools/cl.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2023-07-27 00:39:50 +0800
committerruki <[email protected]>2023-07-27 00:39:50 +0800
commit1bf614da70028c2f1316d0ec6e22cd39dd8540aa (patch)
treefe1723a4ef01aaf871cc832576c64400dd8e2934 /xmake/modules/core/tools/cl.lua
parent6edfa59d6d7941455c5d647a3f351d4ee546ae26 (diff)
improve avx512
Diffstat (limited to 'xmake/modules/core/tools/cl.lua')
-rw-r--r--xmake/modules/core/tools/cl.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/xmake/modules/core/tools/cl.lua b/xmake/modules/core/tools/cl.lua
index 0f4012775..aa8c9aba1 100644
--- a/xmake/modules/core/tools/cl.lua
+++ b/xmake/modules/core/tools/cl.lua
@@ -187,6 +187,7 @@ function nf_vectorext(self, extension)
, avx2 = "-arch:AVX2"
, avx512 = "-arch:AVX512" -- for msvc 2019+ avx512 support
, fma = "-arch:AVX2"
+ , all = {"-arch:SSE", "-arch:SSE2", "/d2archSSE42", "-arch:AVX", "-arch:AVX2", "-arch:AVX512"}
}
local flag = maps[extension]
if flag and self:has_flags(flag, "cxflags") then