From fbc74a35c46a342048611e89f8a01e8d990f7bc6 Mon Sep 17 00:00:00 2001 From: ruki Date: Sat, 18 May 2024 00:51:11 +0800 Subject: improve vectorext --- xmake/modules/core/tools/gcc.lua | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'xmake/modules') diff --git a/xmake/modules/core/tools/gcc.lua b/xmake/modules/core/tools/gcc.lua index ffd3ff895..f51a088bf 100644 --- a/xmake/modules/core/tools/gcc.lua +++ b/xmake/modules/core/tools/gcc.lua @@ -182,6 +182,10 @@ function nf_vectorext(self, extension) , neon = "-mfpu=neon" , all = "-march=native" } + if extension == "all" and self:is_cross() then + -- https://github.com/xmake-io/xmake-repo/pull/4040#discussion_r1605121207 + maps[extension] = nil + end return maps[extension] end -- cgit v1.3.1