summaryrefslogtreecommitdiff
path: root/core/xmake.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2022-05-20 23:05:19 +0800
committerGitHub <[email protected]>2022-05-20 23:05:19 +0800
commit6cf488d207c3009aba6319759a2cc2fb6aa7a405 (patch)
treec61583cf363192611d4f0be291b9e1fbe8afd2ab /core/xmake.lua
parentc6218b9b4cd17babf15fa46dbc65e895ace3e7d7 (diff)
parentd63ce0e016b58d03519f957d7ac9f36494c73486 (diff)
Merge pull request #2361 from xmake-io/buildcache
Add build cache instead of ccache
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")