summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2024-09-06 23:46:17 +0800
committerruki <[email protected]>2024-09-06 23:46:17 +0800
commit79e282463c92e3ecd9229a647d8072eb3b5fdc05 (patch)
tree1038a364f3833ce696d3c0cef5b470799e8aaae4
parent3038f3efca0d3ce1920d0711d2119b32f1951ef1 (diff)
fix #5574
-rw-r--r--xmake/modules/core/tools/clang.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/core/tools/clang.lua b/xmake/modules/core/tools/clang.lua
index 879bdb628..1b16d2710 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