Commit 67441e6
committed
lib: allow setting current directory for compile steps
We need this to implement the new test in
ziglang#19818
This commits adds:
* `setCwd` for `Build.Step.Compile`.
Allows setting current directory for compile steps.
* `opt_cwd` for `evalZigProcess` in `Build.Step`.
Allows running `evalZigProcess` in a specific directory.
Needed for setting current directory for compile steps.
`--zig-lib-dir` is now appended differently in `Build.Step.Compile`.
This is needed for compatibility with `setCwd`.1 parent d708c4c commit 67441e6
File tree
4 files changed
+23
-9
lines changed- lib/std/Build
- Step
4 files changed
+23
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
371 | 371 | | |
372 | 372 | | |
373 | 373 | | |
| 374 | + | |
374 | 375 | | |
375 | 376 | | |
376 | 377 | | |
| |||
401 | 402 | | |
402 | 403 | | |
403 | 404 | | |
404 | | - | |
| 405 | + | |
405 | 406 | | |
406 | 407 | | |
407 | 408 | | |
| |||
412 | 413 | | |
413 | 414 | | |
414 | 415 | | |
415 | | - | |
416 | | - | |
| 416 | + | |
| 417 | + | |
417 | 418 | | |
418 | 419 | | |
419 | 420 | | |
| |||
422 | 423 | | |
423 | 424 | | |
424 | 425 | | |
| 426 | + | |
425 | 427 | | |
426 | 428 | | |
427 | 429 | | |
| |||
463 | 465 | | |
464 | 466 | | |
465 | 467 | | |
466 | | - | |
| 468 | + | |
467 | 469 | | |
468 | 470 | | |
469 | 471 | | |
470 | 472 | | |
471 | 473 | | |
472 | 474 | | |
473 | 475 | | |
474 | | - | |
| 476 | + | |
475 | 477 | | |
476 | 478 | | |
477 | 479 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
243 | 244 | | |
244 | 245 | | |
245 | 246 | | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
246 | 250 | | |
247 | 251 | | |
248 | 252 | | |
| |||
1705 | 1709 | | |
1706 | 1710 | | |
1707 | 1711 | | |
1708 | | - | |
| 1712 | + | |
1709 | 1713 | | |
1710 | 1714 | | |
1711 | 1715 | | |
| |||
1803 | 1807 | | |
1804 | 1808 | | |
1805 | 1809 | | |
| 1810 | + | |
1806 | 1811 | | |
1807 | 1812 | | |
1808 | 1813 | | |
| 1814 | + | |
1809 | 1815 | | |
1810 | 1816 | | |
1811 | 1817 | | |
| |||
1888 | 1894 | | |
1889 | 1895 | | |
1890 | 1896 | | |
| 1897 | + | |
1891 | 1898 | | |
1892 | | - | |
| 1899 | + | |
1893 | 1900 | | |
1894 | 1901 | | |
1895 | 1902 | | |
| |||
2130 | 2137 | | |
2131 | 2138 | | |
2132 | 2139 | | |
| 2140 | + | |
| 2141 | + | |
| 2142 | + | |
| 2143 | + | |
| 2144 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
236 | 236 | | |
237 | 237 | | |
238 | 238 | | |
239 | | - | |
| 239 | + | |
240 | 240 | | |
241 | 241 | | |
242 | 242 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
200 | 200 | | |
201 | 201 | | |
202 | 202 | | |
203 | | - | |
| 203 | + | |
204 | 204 | | |
205 | 205 | | |
206 | 206 | | |
| |||
0 commit comments