Skip to content

Commit 5f6c278

Browse files
committed
disable uv when not used
1 parent 43f7b8b commit 5f6c278

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

packages/h/h2o/xmake.lua

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,17 @@ package("h2o")
4343

4444
on_install("linux", function (package)
4545
local configs = {}
46+
4647
table.insert(configs, "-DCMAKE_BUILD_TYPE=" .. (package:is_debug() and "Debug" or "Release"))
4748
table.insert(configs, "-DBUILD_SHARED_LIBS=" .. (package:config("shared") and "ON" or "OFF"))
4849
table.insert(configs, "-DWITH_MRUBY=" .. (package:config("mruby") and "ON" or "OFF"))
4950
table.insert(configs, "-DWITH_CCACHE=" .. (package:config("ccache") and "ON" or "OFF"))
5051
table.insert(configs, "-DWITH_DTRACE=" .. (package:config("dtrace") and "ON" or "OFF"))
5152
table.insert(configs, "-DWITH_FUSION=" .. (package:config("fusion") and "ON" or "OFF"))
53+
table.insert(configs, "-DDISABLE_LIBUV=" .. (package:config("uv") and "OFF" or "ON"))
54+
table.insert(configs, "-DWITH_IO_URING=" .. (package:config("uring") and "ON" or "OFF"))
5255
table.insert(configs, "-DWITH_KTLS=" .. (package:config("ktls") and "ON" or "OFF"))
5356
table.insert(configs, "-DWITH_AEGIS=" .. (package:config("aegis") and "ON" or "OFF"))
54-
table.insert(configs, "-DWITH_IO_URING=" .. (package:config("uring") and "ON" or "OFF"))
5557
table.insert(configs, "-DWITH_MPTCP=" .. (package:config("mptcp") and "ON" or "OFF"))
5658
table.insert(configs, "-DWITH_BROTLI=" .. (package:config("brotli") and "ON" or "OFF"))
5759
table.insert(configs, "-DWITH_ZSTD=" .. (package:config("zstd") and "ON" or "OFF"))

0 commit comments

Comments
 (0)