diff options
Diffstat (limited to 'xmake/modules/core/tools/gcc.lua')
| -rw-r--r-- | xmake/modules/core/tools/gcc.lua | 4 |
1 files changed, 4 insertions, 0 deletions
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 |
