tools wrapper: fix for windows
'common' is not a thing in Windows; but it needs to be defined. This makes v1.0.0-rc3 broken for Windows, and not useful (yet) for anyone else but me. Revert the README update too.
This commit is contained in:
@@ -178,6 +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
|
||||
)
|
||||
|
||||
if is_windows:
|
||||
@@ -186,7 +187,6 @@ def _zig_tool_wrapper(zig_tool, zig, is_windows, cache_prefix):
|
||||
else:
|
||||
return _ZIG_TOOL_WRAPPER_WINDOWS_CACHE_GUESS.format(**kwargs)
|
||||
else:
|
||||
kwargs["common"] = _ZIG_TOOL_COMMON_UNIX
|
||||
if cache_prefix:
|
||||
return _ZIG_TOOL_WRAPPER_CACHE_KNOWN.format(**kwargs)
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user