build.run: add env= argument to BuildPlan.execute_local().
Build scripts are explicitly intended to have overrides that are done through the use of environment variables, and right now this would require a very awkward `run_script=False` invocation followed by copying a bit of code out of the Amaranth codebase, which is clearly suboptimal.
This commit is contained in:
parent
a6d67f7477
commit
a921261215
2 changed files with 11 additions and 4 deletions
|
|
@ -95,6 +95,7 @@ Toolchain changes
|
|||
|
||||
* Changed: text files are written with LF line endings on Windows, like on other platforms.
|
||||
* Added: ``debug_verilog`` override in :class:`build.TemplatedPlatform`.
|
||||
* Added: ``env=`` argument to :meth:`build.run.BuildPlan.execute_local`.
|
||||
* Deprecated: use of mixed-case toolchain environment variable names, such as ``NMIGEN_ENV_Diamond`` or ``AMARANTH_ENV_Diamond``; use upper-case environment variable names, such as ``AMARANTH_ENV_DIAMOND``.
|
||||
* Removed: (deprecated in 0.3) :meth:`sim.Simulator.step`.
|
||||
* Removed: (deprecated in 0.3) :mod:`back.pysim`.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue