summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJérôme Leclercq <[email protected]>2024-05-03 18:50:16 +0200
committerGitHub <[email protected]>2024-05-03 18:50:16 +0200
commit215341f8e977a6e0576805652fb563480e460cf8 (patch)
treec72419c897f711c5d4bf13254abb8fcc92a0a272
parent9481201c2a5ee55975af0108c2da26ed681ca781 (diff)
Fix target.linkname not returning a value
-rw-r--r--xmake/core/project/target.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/xmake/core/project/target.lua b/xmake/core/project/target.lua
index 9c396e25c..c933b4a9a 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