fix(svt-av1): fix wasm build error in some emscripten version

svt
冰雪殇璃陌梦 2 years ago
parent 2b54bdd654
commit b15ce31ddd
No known key found for this signature in database
GPG Key ID: EDAD0ED1B9B2559D
  1. 1
      packages/s/svt-av1/xmake.lua

@ -32,6 +32,7 @@ package("svt-av1")
table.insert(configs, "-DLIB_INSTALL_DIR=" .. package:installdir("lib"))
if package:is_plat("wasm") then
io.replace("CMakeLists.txt", "if(MINGW)", "if(TRUE)\n check_both_flags_add(-pthread)\n elseif(MINGW)", {plain = true})
io.replace("CMakeLists.txt", "set(CMAKE_EXE_LINKER_FLAGS \"${CMAKE_EXE_LINKER_FLAGS} -z noexecstack -z relro -z now\")", "", {plain = true})
io.replace(path.join(os.curdir(), "Source", "Lib", "Decoder", "CMakeLists.txt"), "list(APPEND PLATFORM_LIBS Threads::Threads)", "", {plain = true})
io.replace(path.join(os.curdir(), "Source", "Lib", "Encoder", "CMakeLists.txt"), "list(APPEND PLATFORM_LIBS Threads::Threads)", "", {plain = true})
end

Loading…
Cancel
Save