From b7456c627d18a7770c0a5c6e69cbf4ee2e716c95 Mon Sep 17 00:00:00 2001 From: whitequark Date: Sun, 13 Oct 2019 21:45:56 +0000 Subject: [PATCH] build.plat: batch files use EQU, not EQ. --- nmigen/build/plat.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nmigen/build/plat.py b/nmigen/build/plat.py index b99715b..7c7bd0f 100644 --- a/nmigen/build/plat.py +++ b/nmigen/build/plat.py @@ -295,8 +295,8 @@ class TemplatedPlatform(Platform): template = ": ${{{env_var}:={name}}}" elif syntax == "bat": template = \ - "if [%{env_var}%] eq [\"\"] set {env_var}=\n" \ - "if [%{env_var}%] eq [] set {env_var}={name}" + "if [%{env_var}%] equ [\"\"] set {env_var}=\n" \ + "if [%{env_var}%] equ [] set {env_var}={name}" else: assert False commands.append(template.format(env_var=env_var, name=name)) -- 2.30.2