Commit b0e45b3
authored
Print directory change notifications around tool execution
Summary
Print Entering directory '...' and Leaving directory '...' around tool invocations in _run_tool()
Enables editors (Emacs, etc.) to resolve file paths in tool output when running from a build directory
Motivation
When edalize runs a tool (e.g. slang for linting), it sets cwd=self.work_root, so the tool reports file paths relative to the build directory. Editors that parse compiler output (like Emacs compilation-mode) cannot resolve these paths back to the source files.
GNU Make solved this with Entering directory / Leaving directory messages. This patch adds the same convention to edalize so that editor integrations work out of the box.
Test plan
Run any edalize-backed tool (e.g. fusesoc run --target=slanglint ...)
Verify Entering directory and Leaving directory appear in output
Verify editor can resolve relative file paths in tool output to correct source locations1 parent 20b3510 commit b0e45b3
1 file changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
568 | 568 | | |
569 | 569 | | |
570 | 570 | | |
| 571 | + | |
| 572 | + | |
571 | 573 | | |
572 | 574 | | |
573 | 575 | | |
| |||
593 | 595 | | |
594 | 596 | | |
595 | 597 | | |
| 598 | + | |
596 | 599 | | |
597 | 600 | | |
598 | 601 | | |
| |||
0 commit comments