diff options
| author | ruki <[email protected]> | 2023-07-26 23:51:34 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2023-07-26 23:51:34 +0800 |
| commit | 8eb5c2f3c4d1dd2124b7e43f71b259ff90b66893 (patch) | |
| tree | 7109ef463a06625658dc85afda830821571ad8b6 | |
| parent | 59c3c5d3a025ad3bed85f73f31de36f3094d1cc9 (diff) | |
add some comments
| -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" } |
