summaryrefslogtreecommitdiff
path: root/core/xmake.lua
diff options
context:
space:
mode:
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")