build.plat: fix toolchain environment variable check, #2.

Fixes typo introduced in commit 78b90fba.
This commit is contained in:
Catherine 2024-02-11 08:15:04 +00:00
parent 05ac36751a
commit 10117607a3

View file

@ -89,7 +89,7 @@ class Platform(ResourceManager, metaclass=ABCMeta):
# may fail.
# This is OK because even if `require_tool` succeeds, the toolchain might be broken anyway.
# The check only serves to catch common errors earlier.
if do_build and not self._toolchain_env_var not in os.environ:
if do_build and self._toolchain_env_var not in os.environ:
for tool in self.required_tools:
require_tool(tool)