Commit f8b9c6e
authored
Add --enable-fastdev-unsafe-for-production, subsuming unified buid (#5298)
This is a proposal for how to address
#5267 in the short term.
Longer term we might need some more involved fixes, but this should make
life much nicer day-to-day for stellar-core devs.
It adds a new mode `--enable-fastdev-unsafe-for-production` which:
- Is still an optimized mode, but not _quite_ as optimized (it turns off
LTO and turns on multiple CGUs)
- Still has debuginfo, but not _quite_ as much (just line tables; enough
for profiling and backtraces)
- Turns off all soroban hosts except curr and next
- Turns on the "unified build" (it actually subsumes/replaces that flag,
since it was mainly useful for this sort of scenario anyways, along with
asan and tsan, both of which are mainly useful for testing curr and
next)
- Also turns on next, because .. it's simpler to implement / fewer
features if it's a superset. Also it doesn't cost much more and next is
a very common development configuration anyways.
Results:
Before:
```
$ time make -j 20 (with warm ccache)
real 6m6.625s
user 12m13.915s
sys 0m57.854s
$ ls -lah src/stellar-core
-rwxr-xr-x 1 dev dev 993M May 28 04:37 src/stellar-core
```
After:
```
$ time make -j 20 (with warm ccache)
real 0m42.597s
user 3m35.143s
sys 0m27.528s
$ ls -lah src/stellar-core
-rwxr-xr-x 1 dev dev 277M May 28 04:48 src/stellar-core
```22 files changed
Lines changed: 1091 additions & 149 deletions
File tree
- src
- herder/test
- rust
- soroban
- src
- dep-trees
- test
- transactions/test
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
52 | 55 | | |
53 | 56 | | |
54 | 57 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
119 | | - | |
| 119 | + | |
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
| |||
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
159 | | - | |
| 159 | + | |
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
| |||
294 | 294 | | |
295 | 295 | | |
296 | 296 | | |
297 | | - | |
| 297 | + | |
298 | 298 | | |
299 | 299 | | |
300 | 300 | | |
| |||
331 | 331 | | |
332 | 332 | | |
333 | 333 | | |
334 | | - | |
335 | | - | |
336 | | - | |
337 | | - | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
338 | 338 | | |
339 | | - | |
340 | | - | |
| 339 | + | |
| 340 | + | |
341 | 341 | | |
342 | | - | |
| 342 | + | |
343 | 343 | | |
344 | | - | |
| 344 | + | |
345 | 345 | | |
346 | 346 | | |
347 | | - | |
348 | | - | |
| 347 | + | |
| 348 | + | |
349 | 349 | | |
350 | 350 | | |
351 | 351 | | |
352 | 352 | | |
353 | 353 | | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
0 commit comments