diff options
| author | ruki <[email protected]> | 2024-05-18 00:51:11 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2024-05-18 00:51:11 +0800 |
| commit | fbc74a35c46a342048611e89f8a01e8d990f7bc6 (patch) | |
| tree | 41a2dcc51d19402ce5e8fcb18b62224aa91637c6 /xmake/modules/core/tools/gcc.lua | |
| parent | 95f874011c27d1145e14b7bb43b0dd578fa6c026 (diff) | |
improve vectorext
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 |
