Skip to content

Commit af59d9e

Browse files
authored
Merge pull request #1864 from Pinata-Consulting/flow-skip-metrics
metrics: add SKIP_METRICS=1 variable to speed up builds
2 parents a3ec9b4 + 9d29bf2 commit af59d9e

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

docs/user/FlowVariables.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ platform, design and tool specific variables to allow finer control and
66
user overrides at various flow stages. These are defined in the
77
`config.mk` file located in the platform and design specific directories.
88

9+
### General variables for all stages
10+
11+
| Variable | Description |
12+
|------------------|------------------------------------------------------------------------------------|
13+
| `SKIP_REPORT_METRICS` | If set to 1, then metrics, report_metrics does nothing. Useful to speed up builds. |
914

1015
## Platform
1116

flow/scripts/report_metrics.tcl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ proc report_puts { out } {
77
}
88

99
proc report_metrics { stage when {include_erc true} {include_clock_skew true} } {
10+
if {[info exists ::env(SKIP_REPORT_METRICS)] && $::env(SKIP_REPORT_METRICS) == 1} {
11+
return
12+
}
1013
set filename $::env(REPORTS_DIR)/${stage}_[string map {" " "_"} $when].rpt
1114
set fileId [open $filename w]
1215
close $fileId

0 commit comments

Comments
 (0)