Commit 4b9142e
committed
Fix legacy bsb to use source subdirectory from output_prefix
The previous implementation used a ninja variable $in_d which doesn't exist,
causing files to be written to the wrong location. Now bsc extracts the
source subdirectory directly from the output_prefix parameter.
For in-source builds with output_prefix='src/Node', files are written to:
project_root / '.' / 'src' / 'Node.mjs'
For out-of-source builds with output_prefix='src/Node', files go to:
project_root / 'lib/es6' / 'src' / 'Node.mjs'
This ensures source directory structure is preserved in the output.1 parent c3cc9a8 commit 4b9142e
2 files changed
Lines changed: 11 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
135 | | - | |
| 135 | + | |
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
| 139 | + | |
| 140 | + | |
139 | 141 | | |
140 | | - | |
| 142 | + | |
141 | 143 | | |
142 | 144 | | |
143 | 145 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
304 | 304 | | |
305 | 305 | | |
306 | 306 | | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
307 | 313 | | |
308 | 314 | | |
309 | 315 | | |
| 316 | + | |
310 | 317 | | |
311 | 318 | | |
312 | 319 | | |
| |||
0 commit comments