Commit aac072c
committed
#709 `[features.<f>] tools = ["<bin>"]` names the package's own programs
a feature needs on the build machine. On every edge into the package,
the active features' tools are requested as if the edge had written
`tools = [...]`: built once for the host, reachable through
`mcpp::dep_bin`. A name that is not a `kind = "bin"` target of the
package is refused at load, naming the bin targets.
#711 `x = { ..., artifacts = ["<bin>"] }` asks for the dependency's
program built for the consumer's target and profile, as a link unit of
the consumer's own plan, written to `bin/` beside its programs. The
unit links the dependency's objects and those of every package it
reaches; a package reached only through artifact edges is kept out of
the consumer's images, since the edge takes the program and not the
code. A package asked for artifacts is scanned and configured here even
when all its targets are programs. `${mcpp.artifact:<package>/<target>}`
names the output in actions, `mcpp pack` stages it beside the program,
and `mcpp run` and the program-selection sites ignore it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MajuX4J8ewFeWvZJjzRJt5
1 parent 85c9037 commit aac072c
10 files changed
Lines changed: 645 additions & 6 deletions
File tree
- modules/manifest/src
- src
- build
- pack
- tests
- e2e
- unit
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
70 | 79 | | |
71 | 80 | | |
72 | 81 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1014 | 1014 | | |
1015 | 1015 | | |
1016 | 1016 | | |
| 1017 | + | |
| 1018 | + | |
| 1019 | + | |
| 1020 | + | |
| 1021 | + | |
| 1022 | + | |
| 1023 | + | |
| 1024 | + | |
1017 | 1025 | | |
1018 | 1026 | | |
1019 | 1027 | | |
| |||
1101 | 1109 | | |
1102 | 1110 | | |
1103 | 1111 | | |
| 1112 | + | |
| 1113 | + | |
1104 | 1114 | | |
1105 | 1115 | | |
1106 | 1116 | | |
| |||
1842 | 1852 | | |
1843 | 1853 | | |
1844 | 1854 | | |
1845 | | - | |
| 1855 | + | |
1846 | 1856 | | |
1847 | 1857 | | |
1848 | 1858 | | |
| |||
2018 | 2028 | | |
2019 | 2029 | | |
2020 | 2030 | | |
| 2031 | + | |
| 2032 | + | |
| 2033 | + | |
| 2034 | + | |
| 2035 | + | |
| 2036 | + | |
2021 | 2037 | | |
2022 | 2038 | | |
2023 | 2039 | | |
| |||
4329 | 4345 | | |
4330 | 4346 | | |
4331 | 4347 | | |
| 4348 | + | |
| 4349 | + | |
| 4350 | + | |
| 4351 | + | |
| 4352 | + | |
| 4353 | + | |
| 4354 | + | |
| 4355 | + | |
| 4356 | + | |
| 4357 | + | |
| 4358 | + | |
| 4359 | + | |
| 4360 | + | |
| 4361 | + | |
| 4362 | + | |
| 4363 | + | |
| 4364 | + | |
| 4365 | + | |
| 4366 | + | |
| 4367 | + | |
| 4368 | + | |
4332 | 4369 | | |
4333 | 4370 | | |
4334 | 4371 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2070 | 2070 | | |
2071 | 2071 | | |
2072 | 2072 | | |
| 2073 | + | |
| 2074 | + | |
| 2075 | + | |
| 2076 | + | |
| 2077 | + | |
| 2078 | + | |
| 2079 | + | |
| 2080 | + | |
2073 | 2081 | | |
2074 | 2082 | | |
2075 | 2083 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
562 | 562 | | |
563 | 563 | | |
564 | 564 | | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
565 | 568 | | |
566 | 569 | | |
567 | 570 | | |
| |||
2219 | 2222 | | |
2220 | 2223 | | |
2221 | 2224 | | |
| 2225 | + | |
2222 | 2226 | | |
2223 | 2227 | | |
2224 | 2228 | | |
| |||
0 commit comments