Skip to content

Commit

Permalink
improve executable_path
Browse files Browse the repository at this point in the history
  • Loading branch information
waruqi committed Feb 28, 2024
1 parent 5469bf4 commit f86fca0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions xmake/modules/private/utils/executable_path.lua
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,14 @@ function main(program)
end
end
end
-- patch .exe
-- @see https://github.com/xmake-io/xmake/discussions/4781
if is_host("windows") and path.is_absolute(program) then
local program_exe = program .. ".exe"
if os.isfile(program_exe) then
program = program_exe
end
end
if not filepath then
filepath = program
end
Expand Down

0 comments on commit f86fca0

Please sign in to comment.