From 79e282463c92e3ecd9229a647d8072eb3b5fdc05 Mon Sep 17 00:00:00 2001 From: ruki Date: Fri, 6 Sep 2024 23:46:17 +0800 Subject: [PATCH] fix #5574 --- xmake/modules/core/tools/clang.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xmake/modules/core/tools/clang.lua b/xmake/modules/core/tools/clang.lua index 879bdb62830..1b16d2710f7 100644 --- a/xmake/modules/core/tools/clang.lua +++ b/xmake/modules/core/tools/clang.lua @@ -296,7 +296,7 @@ function nf_runtime(self, runtime, opt) if triple_libdir then maps["c++_shared"] = table.join(maps["c++_shared"], nf_rpathdir(self, triple_libdir)) end - if target:is_shared() and target.filename and self:is_plat("macosx", "iphoneos", "watchos") then + if target.is_shared and target:is_shared() and target.filename and self:is_plat("macosx", "iphoneos", "watchos") then maps["c++_shared"] = table.join(maps["c++_shared"], "-install_name") maps["c++_shared"] = table.join(maps["c++_shared"], "@rpath/" .. target:filename()) end