From 5480e275ffb9412e2c48be9725c2ef9e29b909b9 Mon Sep 17 00:00:00 2001 From: ruki Date: Fri, 20 May 2022 00:58:55 +0800 Subject: improve xmake.lua --- core/xmake.lua | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'core/xmake.lua') 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") -- cgit v1.3.1