Commit d7417fd
committed
9src/cc: pcc produces $O.out, keeps .6 objects; use basename for prog detection
- Use basename of argv[0] (strip path prefix) so /amd64/bin/ape/pcc is
detected as "pcc" correctly
- pcc output: smprint("%s.out", ot->o) e.g. "6.out" — matches Plan9 6l default
and what mkmany expects
- pcc keeps .6 object files after linking (Plan9 native convention);
only cc mode removes the intermediate .o (APE configure-compat mode)
https://claude.ai/code/session_01WGAwvvTwDg2yknFkmZ3qzs1 parent cb5b7cc commit d7417fd
1 file changed
Lines changed: 9 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
| 63 | + | |
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
71 | | - | |
72 | | - | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
73 | 76 | | |
74 | 77 | | |
75 | 78 | | |
| |||
221 | 224 | | |
222 | 225 | | |
223 | 226 | | |
224 | | - | |
225 | | - | |
| 227 | + | |
| 228 | + | |
226 | 229 | | |
227 | 230 | | |
228 | 231 | | |
| |||
0 commit comments