diff options
| author | ruki <[email protected]> | 2022-09-17 00:40:40 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2022-09-17 00:40:40 +0800 |
| commit | 0a5c71801f41f55ebe7c0242eefee936756fbbd9 (patch) | |
| tree | 022cd593348744fcc965c3bc599d4ec2d078c5fc /xmake/modules/detect/tools/find_cpp.lua | |
| parent | aeda19b4032f790aa6e6915752ae5f06850ad56a (diff) | |
format code
Diffstat (limited to 'xmake/modules/detect/tools/find_cpp.lua')
| -rw-r--r-- | xmake/modules/detect/tools/find_cpp.lua | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/xmake/modules/detect/tools/find_cpp.lua b/xmake/modules/detect/tools/find_cpp.lua index e80bfb4e4..9d87c0ebd 100644 --- a/xmake/modules/detect/tools/find_cpp.lua +++ b/xmake/modules/detect/tools/find_cpp.lua @@ -36,19 +36,11 @@ import("lib.detect.find_programver") -- @endcode -- function main(opt) - - -- init options opt = opt or {} - - -- find program - local program = find_program(opt.program or "cpp", opt) - - -- find program version local version = nil + local program = find_program(opt.program or "cpp", opt) if program and opt and opt.version then version = find_programver(program, opt) end - - -- ok? return program, version end |
