diff options
| author | ruki <[email protected]> | 2023-07-26 23:50:31 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2023-07-26 23:50:31 +0800 |
| commit | 59c3c5d3a025ad3bed85f73f31de36f3094d1cc9 (patch) | |
| tree | d0dd98cc56a457198d6be351b7c99c1242c80cec /xmake/modules/core/tools/cl.lua | |
| parent | 844baa5379db85f5327afc70d9a672c04967cd79 (diff) | |
add sse4.2
Diffstat (limited to 'xmake/modules/core/tools/cl.lua')
| -rw-r--r-- | xmake/modules/core/tools/cl.lua | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/xmake/modules/core/tools/cl.lua b/xmake/modules/core/tools/cl.lua index ad64a0267..0e4426436 100644 --- a/xmake/modules/core/tools/cl.lua +++ b/xmake/modules/core/tools/cl.lua @@ -180,12 +180,13 @@ end function nf_vectorext(self, extension) local maps = { - sse = "-arch:SSE" - , sse2 = "-arch:SSE2" - , avx = "-arch:AVX" - , avx2 = "-arch:AVX2" - , avx512 = "-arch:AVX512" - , fma = "-arch:AVX2" + sse = "-arch:SSE" + , sse2 = "-arch:SSE2" + , ["sse4.2"] = "/d2archSSE42" + , avx = "-arch:AVX" + , avx2 = "-arch:AVX2" + , avx512 = "-arch:AVX512" + , fma = "-arch:AVX2" } local flag = maps[extension] if flag and self:has_flags(flag, "cxflags") then |
