diff options
Diffstat (limited to 'xmake/core/project')
| -rw-r--r-- | xmake/core/project/target.lua | 2 |
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 "" |
