diff --git a/xmake/core/project/target.lua b/xmake/core/project/target.lua index 6f6b2e4056c..6e47d19b8e6 100644 --- a/xmake/core/project/target.lua +++ b/xmake/core/project/target.lua @@ -2859,7 +2859,7 @@ function target.linkname(filename, opt) print("filename", filename) return filename end - print("nil") + print("nil", filename) end -- new a target instance diff --git a/xmake/modules/package/manager/xmake/find_package.lua b/xmake/modules/package/manager/xmake/find_package.lua index f8b9a59b965..f41fa183833 100644 --- a/xmake/modules/package/manager/xmake/find_package.lua +++ b/xmake/modules/package/manager/xmake/find_package.lua @@ -134,6 +134,7 @@ function _find_package_from_repo(name, opt) local filename = path.filename(file) if not symrefs[filename] then if file:endswith(".so") or file:match(".+%.so%..+$") or file:endswith(".dylib") then + print("file", file) print("xxx", target.linkname(path.filename(file), {plat = opt.plat})) table.insert(links, target.linkname(path.filename(file), {plat = opt.plat})) end