From 6da651c37e996ce3c7e303d647e8ce92ac5a3768 Mon Sep 17 00:00:00 2001 From: Arthur LAURENT Date: Thu, 7 Mar 2024 12:50:46 +0100 Subject: [PATCH] cleanup --- xmake/modules/core/tools/clang.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xmake/modules/core/tools/clang.lua b/xmake/modules/core/tools/clang.lua index 8c33fb0259f..76f55382903 100644 --- a/xmake/modules/core/tools/clang.lua +++ b/xmake/modules/core/tools/clang.lua @@ -295,9 +295,9 @@ 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:kind() == "shared" and self:is_plat("macosx", "iphoneos", "watchos") then + if target:is_shared() 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/" .. path.filename(target:filename())) + maps["c++_shared"] = table.join(maps["c++_shared"], "@rpath/" .. target:filename()) end end if runtime:endswith("_static") and _has_static_libstdcxx(self) then