Skip to content
Snippets Groups Projects
Unverified Commit 09bec2fe authored by auphelia's avatar auphelia Committed by GitHub
Browse files

Merge pull request #647 from Xilinx/feature/builder_verbose

[Build] New flag "verbose" to control build_dataflow verbosity
parents a13faced ffa1b3db
No related branches found
No related tags found
No related merge requests found
......@@ -155,12 +155,14 @@ def build_dataflow_cfg(model_filename, cfg: DataflowBuildConfig):
% (step_name, step_num, len(build_dataflow_steps))
)
# redirect output to logfile
sys.stdout = stdout_logger
sys.stderr = stderr_logger
print(
"Running step: %s [%d/%d]"
% (step_name, step_num, len(build_dataflow_steps))
)
if not cfg.verbose:
sys.stdout = stdout_logger
sys.stderr = stderr_logger
# also log current step name to logfile
print(
"Running step: %s [%d/%d]"
% (step_name, step_num, len(build_dataflow_steps))
)
# run the step
step_start = time.time()
model = transform_step(model, cfg)
......
......@@ -285,6 +285,10 @@ class DataflowBuildConfig:
#: Whether pdb postmortem debuggig will be launched when the build fails
enable_build_pdb_debug: Optional[bool] = True
#: When True, all warnings and compiler output will be printed in stdout.
#: Otherwise, these will be suppressed and only appear in the build log.
verbose: Optional[bool] = False
#: If given, only run the steps in the list. If not, run default steps.
#: See `default_build_dataflow_steps` for the default list of steps.
#: When specified:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment