Commit ecd2a17
committed
make: check if binaries are valid before continuing
The current logic in variables.mk results in OPENROAD_EXE and YOSYS_EXE
to always be set to something, either the absolute path to tools/install
or the value from the parent env. With this behavior, when calling make
versions.txt the if statements are always true and the "not available"
is never printed to the versions.txt file. If the bins are not valid it
just prints an empty string.
Before this change, calling make versions.txt would fail silently ($? == 0)
and other make commands would fail when trying to run openroad or yosys.
After this change, calling any make command without having a valid
openroad or yosys binary will fail with an error message, which is the
same behaviour already implemented for klayout.
Signed-off-by: Vitor Bandeira <[email protected]>1 parent 82a5c44 commit ecd2a17
2 files changed
+13
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
184 | 184 | | |
185 | 185 | | |
186 | 186 | | |
187 | | - | |
188 | | - | |
189 | | - | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
190 | 190 | | |
191 | 191 | | |
192 | 192 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
100 | 105 | | |
101 | 106 | | |
102 | 107 | | |
| |||
109 | 114 | | |
110 | 115 | | |
111 | 116 | | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
112 | 122 | | |
113 | 123 | | |
114 | 124 | | |
| |||
0 commit comments