From 4ea8335e521039d002624ec8d70c720a713e2cce Mon Sep 17 00:00:00 2001 From: ruki Date: Wed, 20 Dec 2023 23:04:11 +0800 Subject: [PATCH] fix abseil --- packages/a/abseil/xmake.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/a/abseil/xmake.lua b/packages/a/abseil/xmake.lua index d3a90a8b0..e0e5813fb 100644 --- a/packages/a/abseil/xmake.lua +++ b/packages/a/abseil/xmake.lua @@ -27,7 +27,7 @@ package("abseil") end) on_install("macosx", "linux", "windows", "mingw", "cross", function (package) - if package:version():eq("20230802.1") and package:is_plat("mingw") then + if package:version() and package:version():eq("20230802.1") and package:is_plat("mingw") then io.replace(path.join("absl", "synchronization", "internal", "pthread_waiter.h"), "#ifndef _WIN32", "#if !defined(_WIN32) && !defined(__MINGW32__)", {plain = true}) io.replace(path.join("absl", "synchronization", "internal", "win32_waiter.h"), "#if defined(_WIN32) && _WIN32_WINNT >= _WIN32_WINNT_VISTA", "#if defined(_WIN32) && !defined(__MINGW32__) && _WIN32_WINNT >= _WIN32_WINNT_VISTA", {plain = true}) end