From 59ef6e6a1c4e389a41148554f2dd492328820ecd Mon Sep 17 00:00:00 2001 From: whitequark Date: Tue, 24 Nov 2020 23:07:09 +0000 Subject: [PATCH] build.plat: make `verbose` work like all other overrides. Fixes #497. --- 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 750a477..c1d8fc6 100644 --- a/nmigen/build/plat.py +++ b/nmigen/build/plat.py @@ -396,13 +396,13 @@ class TemplatedPlatform(Platform): return '"' + re.sub(r"([$[\\])", r"\\\1", string) + '"' def verbose(arg): - if "NMIGEN_verbose" in os.environ: + if get_override("verbose"): return arg else: return jinja2.Undefined(name="quiet") def quiet(arg): - if "NMIGEN_verbose" in os.environ: + if get_override("verbose"): return jinja2.Undefined(name="quiet") else: return arg -- 2.30.2