diff --git a/xmake/core/project/target.lua b/xmake/core/project/target.lua index 9c396e25cf5..c933b4a9afc 100644 --- a/xmake/core/project/target.lua +++ b/xmake/core/project/target.lua @@ -2857,6 +2857,7 @@ function target.linkname(filename, opt) if not filename:startswith("lib") and (filename:endswith(".so") or filename:endswith(".dylib")) then return filename end + return nil end -- new a target instance