summaryrefslogtreecommitdiff
path: root/xmake/modules/core/tools
diff options
context:
space:
mode:
authorruki <[email protected]>2023-02-25 00:53:20 +0800
committerruki <[email protected]>2023-02-25 00:53:20 +0800
commitb1cd84641fd56aeb204a045f80be0cecceb02b37 (patch)
treeb88a431bd55ea2f6080764d47b26bc54b2915530 /xmake/modules/core/tools
parentf6b383d36a3679bc968bd4a3e7ceade92d950fcb (diff)
add fma
Diffstat (limited to 'xmake/modules/core/tools')
-rw-r--r--xmake/modules/core/tools/cl.lua1
-rw-r--r--xmake/modules/core/tools/gcc.lua1
2 files changed, 2 insertions, 0 deletions
diff --git a/xmake/modules/core/tools/cl.lua b/xmake/modules/core/tools/cl.lua
index cc19978b9..2a0bc556c 100644
--- a/xmake/modules/core/tools/cl.lua
+++ b/xmake/modules/core/tools/cl.lua
@@ -184,6 +184,7 @@ function nf_vectorext(self, extension)
, sse2 = "-arch:SSE2"
, avx = "-arch:AVX"
, avx2 = "-arch:AVX2"
+ , fma = "-arch:AVX2"
}
local flag = maps[extension]
if flag and self:has_flags(flag, "cxflags") then
diff --git a/xmake/modules/core/tools/gcc.lua b/xmake/modules/core/tools/gcc.lua
index b8a05832c..84a1d187f 100644
--- a/xmake/modules/core/tools/gcc.lua
+++ b/xmake/modules/core/tools/gcc.lua
@@ -166,6 +166,7 @@ function nf_vectorext(self, extension)
, ssse3 = "-mssse3"
, avx = "-mavx"
, avx2 = "-mavx2"
+ , fma = "-mfma"
, neon = "-mfpu=neon"
}
return maps[extension]