Skip to content

Commit

Permalink
fix #5574
Browse files Browse the repository at this point in the history
  • Loading branch information
waruqi committed Sep 6, 2024
1 parent 3038f3e commit 79e2824
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xmake/modules/core/tools/clang.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 79e2824

Please sign in to comment.