summaryrefslogtreecommitdiff
path: root/xmake/core/project/target.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2021-12-11 00:54:05 +0800
committerruki <[email protected]>2021-12-11 00:54:05 +0800
commit41da093977e662321899f0a4e980097ca8dd295b (patch)
tree2ece390958cb5b12334dd3a54d5bc484e65e0b19 /xmake/core/project/target.lua
parent349a22942e600821aa72424bbfa58f021357b1cf (diff)
impl linux driver rule
Diffstat (limited to 'xmake/core/project/target.lua')
-rw-r--r--xmake/core/project/target.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/core/project/target.lua b/xmake/core/project/target.lua
index 499db099c..cb470a3c8 100644
--- a/xmake/core/project/target.lua
+++ b/xmake/core/project/target.lua
@@ -2092,7 +2092,7 @@ function target.filename(targetname, targetkind, opt)
-- make filename by format
local filename = targetname
- local format = opt.format or platform.format(targetkind, opt.plat, opt.arch)
+ local format = opt.format or platform.format(targetkind, opt.plat, opt.arch) or "$(name)"
if format then
local splitinfo = format:split("$(name)", {plain = true, strict = true})
local prefixname = splitinfo[1] or ""