瀏覽代碼

Fix bzip2 compilation on clang 15+ (#3307)

* Support bzip2 on clang

* WIP

* Update xmake.lua

---------

Co-authored-by: ruki <[email protected]>
jj683 1 年之前
父節點
當前提交
8d28fe380e
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      packages/b/bzip2/port/xmake.lua

+ 1 - 0
packages/b/bzip2/port/xmake.lua

@@ -22,6 +22,7 @@ target("bz2")
     if is_plat("wasm") then
         add_defines("BZ_STRICT_ANSI")
     end
+    add_cflags("clang::-Wno-error=int-conversion")
 
 if has_config("enable_tools") then