1
This commit is contained in:
Motiejus Jakštys 2022-10-01 05:31:50 +03:00
parent e9638443c6
commit e96f5bb59c

View File

@ -178,7 +178,7 @@ def _zig_tool_wrapper(zig_tool, zig, is_windows, cache_prefix):
zig = str(zig).replace("/", "\\") + ".exe" if is_windows else zig,
zig_tool = zig_tool,
cache_prefix = cache_prefix,
common = "" if is_windows else _ZIG_TOOL_COMMON_UNIX
common = "" if is_windows else _ZIG_TOOL_COMMON_UNIX,
)
if is_windows:
@ -186,7 +186,7 @@ def _zig_tool_wrapper(zig_tool, zig, is_windows, cache_prefix):
return _ZIG_TOOL_WRAPPER_WINDOWS_CACHE_KNOWN.format(**kwargs)
else:
return _ZIG_TOOL_WRAPPER_WINDOWS_CACHE_GUESS.format(**kwargs)
else:
else: # linux. Keeping this comment for buildifier to shut up.
if cache_prefix:
return _ZIG_TOOL_WRAPPER_CACHE_KNOWN.format(**kwargs)
else: