diff options
| author | Arthur LAURENT <[email protected]> | 2024-03-07 12:50:46 +0100 |
|---|---|---|
| committer | Arthur LAURENT <[email protected]> | 2024-03-07 12:50:46 +0100 |
| commit | 6da651c37e996ce3c7e303d647e8ce92ac5a3768 (patch) | |
| tree | 4e316ec643c51ca7fe4b6a1a167b628c464d0ec2 | |
| parent | 70e7191e99b213f0ba38a45b0b5dd0e6e852994a (diff) | |
cleanup
| -rw-r--r-- | xmake/modules/core/tools/clang.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/modules/core/tools/clang.lua b/xmake/modules/core/tools/clang.lua index 8c33fb025..76f553829 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 |
