summaryrefslogtreecommitdiff
path: root/core/xmake.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2022-05-20 00:58:55 +0800
committerruki <[email protected]>2022-05-20 00:58:55 +0800
commit5480e275ffb9412e2c48be9725c2ef9e29b909b9 (patch)
tree6c46ddaff85bceedb103856e27339270fb83b83d /core/xmake.lua
parentaf2981b54c3334819b1aaa7666a5605dd70e329a (diff)
improve xmake.lua
Diffstat (limited to 'core/xmake.lua')
-rw-r--r--core/xmake.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/core/xmake.lua b/core/xmake.lua
index 896fa0a8c..032c178b1 100644
--- a/core/xmake.lua
+++ b/core/xmake.lua
@@ -28,6 +28,13 @@ add_cxflags("-Wno-error=deprecated-declarations", "-fno-strict-aliasing", "-Wno-
-- add defines
add_defines("_GNU_SOURCE=1", "_FILE_OFFSET_BITS=64", "_LARGEFILE_SOURCE")
+-- add vectorexts
+if is_arch("x86", "x64", "i386", "x86_64") then
+ add_vectorexts("sse", "sse2", "sse3", "avx", "avx2")
+elseif is_arch("arm.*") then
+ add_vectorexts("neon")
+end
+
-- for the windows platform (msvc)
if is_plat("windows") then
add_cxflags("-MT")