Skip to content

Commit

Permalink
remove clang flag for android r27
Browse files Browse the repository at this point in the history
  • Loading branch information
star-hengxing committed Jan 1, 2025
1 parent b82c713 commit 9e59a2e
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions packages/f/ffmpeg/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -314,9 +314,14 @@ package("ffmpeg")
local cflags = table.join(table.wrap(package:config("cxflags")), table.wrap(package:config("cflags")), table.wrap(get_config("cxflags")), get_config("cflags"))
local cxxflags = table.join(table.wrap(package:config("cxflags")), table.wrap(package:config("cxxflags")), table.wrap(get_config("cxflags")), get_config("cxxflags"))
assert(os.isdir(sysroot), "we do not support old version ndk!")

local ndkver = tonumber(ndk:config("ndkver"))
if package:is_arch("arm64-v8a") then
table.insert(cflags, "-mfpu=neon")
table.insert(cflags, "-mfloat-abi=hard")
-- https://github.com/llvm/llvm-project/issues/74361
if ndkver < 27 then
table.insert(cflags, "-mfpu=neon")
table.insert(cflags, "-mfloat-abi=hard")
end
else
table.insert(cflags, "-mfpu=neon")
table.insert(cflags, "-mfloat-abi=soft")
Expand Down

0 comments on commit 9e59a2e

Please sign in to comment.