summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2024-11-20 23:39:58 +0800
committerruki <[email protected]>2024-11-20 23:39:58 +0800
commit46e3ad09b7144edc59c66616004bcc89ffa3f244 (patch)
tree357dddfaca84cd615909b70e9b7ea2ddf0cc6c40
parente7d9e06472b8122da006b6a110c43d9a05c89d6b (diff)
format find_wine
-rw-r--r--xmake/modules/detect/tools/find_wine.lua6
1 files changed, 0 insertions, 6 deletions
diff --git a/xmake/modules/detect/tools/find_wine.lua b/xmake/modules/detect/tools/find_wine.lua
index 05119a88d..19481f320 100644
--- a/xmake/modules/detect/tools/find_wine.lua
+++ b/xmake/modules/detect/tools/find_wine.lua
@@ -36,19 +36,13 @@ import("lib.detect.find_programver")
-- @endcode
--
function main(opt)
- -- init options
opt = opt or {}
-
- -- find program
local program = find_program(opt.program or "wine", opt)
- -- find program version
local version = nil
if program and opt and opt.version then
opt.parse = opt.parse or "wine%-(%d+%.%d+%.%d+)"
version = find_programver(program, opt)
end
-
- -- ok?
return program, version
end