summaryrefslogtreecommitdiff
path: root/xmake/modules/private/utils/completer.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/modules/private/utils/completer.lua')
-rw-r--r--xmake/modules/private/utils/completer.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/private/utils/completer.lua b/xmake/modules/private/utils/completer.lua
index 3dc014227..f205ba865 100644
--- a/xmake/modules/private/utils/completer.lua
+++ b/xmake/modules/private/utils/completer.lua
@@ -272,7 +272,7 @@ function completer:_complete_option(options, segs, completing)
if current_options.project then
table.insert(args, 2, "--project=" .. current_options.project)
end
- os.execv("xmake", args)
+ os.execv(os.programfile(), args)
return true
end