diff options
Diffstat (limited to 'thirdparty/xmake.lua')
| -rw-r--r-- | thirdparty/xmake.lua | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/thirdparty/xmake.lua b/thirdparty/xmake.lua index f929656a6..21a98c967 100644 --- a/thirdparty/xmake.lua +++ b/thirdparty/xmake.lua @@ -32,12 +32,16 @@ target('ue-trace') add_includedirs("trace", {public=true}) add_headerfiles("trace/**.h") +-- rpmalloc 1.5.0-dev.20250810 +-- Vendored from develop branch commit 6b34d956911b (2025-08-10) +-- https://github.com/mjansson/rpmalloc/commit/6b34d956911b target('rpmalloc') set_kind("static") set_group('thirdparty') set_languages("c17", "cxx20") - if is_os("windows") then - add_cflags("/experimental:c11atomics", {force=true}) + if is_os("windows") and not (get_config("toolchain") or ""):find("clang") then + add_cflags("/experimental:c11atomics", {force=true, tools="cl"}) + add_cflags("/wd5105", {tools="cl"}) end add_defines("RPMALLOC_FIRST_CLASS_HEAPS=1", "ENABLE_STATISTICS=1", "ENABLE_OVERRIDE=0") add_files("rpmalloc/rpmalloc.c") @@ -67,7 +71,11 @@ target('cpr') target('asio') set_kind('headeronly') set_group('thirdparty') - add_defines("ASIO_STANDLONE", "ASIO_HEADER_ONLY", {public=true}) + add_defines("ASIO_STANDALONE", "ASIO_HEADER_ONLY", {public=true}) + -- if is_plat("linux") and not (get_config("toolchain") == "ue-clang") then + -- add_defines("ASIO_HAS_IO_URING", {public=true}) + -- add_packages("liburing", {public=true}) + -- end add_headerfiles("asio/asio/include/**.hpp") add_includedirs("asio/asio/include", {public=true}) @@ -78,8 +86,8 @@ target("blake3") add_headerfiles("blake3/c/blake3.h") add_includedirs("blake3/c", {public=true}) - if is_os("windows") then - add_cflags("/experimental:c11atomics") + if is_os("windows") and not (get_config("toolchain") or ""):find("clang") then + add_cflags("/experimental:c11atomics", {tools="cl"}) add_cflags("/wd4245", {force = true}) -- conversion from 'type1' to 'type2', possible loss of data elseif is_os("macosx") then add_cflags("-Wno-unused-function") @@ -134,6 +142,10 @@ target("robin-map") target("fmt") set_kind("static") set_group("thirdparty") + set_warnings("allextra") + if is_plat("windows") then + add_cxxflags("/wd4834", {force=true}) -- C4834: discarding return value of [[nodiscard]] function + end add_files("fmt/src/format.cc", "fmt/src/os.cc") add_headerfiles("fmt/include/**.h") add_includedirs("fmt/include", {public=true}) |