From: whitequark Date: Tue, 24 Nov 2020 23:07:09 +0000 (+0000) Subject: build.plat: make `verbose` work like all other overrides. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=dd7462039a6988e6ff03e9b88b9e4b96e52c29d9;p=nmigen.git build.plat: make `verbose` work like all other overrides. Fixes #497. --- 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