Pass verbose to go build

This commit is contained in:
Kovid Goyal 2022-08-16 09:59:20 +05:30
parent 2ea3fa36d2
commit ce9a5528bc
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -877,6 +877,8 @@ def safe_makedirs(path: str) -> None:
def build_kitty_tool(args: Options, launcher_dir: str = '.') -> None:
cmd = ['go', 'build']
if args.verbose:
cmd.append('-v')
if not args.debug:
cmd += ['-ldflags', '-s -w']
cmd += ['-o', os.path.join(launcher_dir, 'kitty-tool'), os.path.abspath('tools/cmd')]