Skip to content

Commit 1011760

Browse files
committed
build.plat: fix toolchain environment variable check, #2.
Fixes typo introduced in commit 78b90fb.
1 parent 05ac367 commit 1011760

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

amaranth/build/plat.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def build(self, elaboratable, name="top",
8989
# may fail.
9090
# This is OK because even if `require_tool` succeeds, the toolchain might be broken anyway.
9191
# The check only serves to catch common errors earlier.
92-
if do_build and not self._toolchain_env_var not in os.environ:
92+
if do_build and self._toolchain_env_var not in os.environ:
9393
for tool in self.required_tools:
9494
require_tool(tool)
9595

0 commit comments

Comments
 (0)