Commit 2e0378d
authored
Add more CMake options (#1715)
* Enable colored diagnostics
A well-known limitation of using ninja is that it requires the user to
pass -fcolor-diagnostics=always flag to the compiler to get colored
diagnostics. Starting from version 3.24, CMake can do this for us if we
set CMAKE_COLOR_DIAGNOSTICS flag to a truthful value.
* Add CMake option to disable GDB backtrace on fatal signal
Backtraces we produce are very verbose and somewhat useless. They also
are sometimes so long that they fill all of terminal scrollback and hide
the actual error.
* Add an off-by-default CMake option for using LLD as a linker
Using LLD gives a 3-fold link-time improvement on my machine.1 parent f42d13e commit 2e0378d
File tree
3 files changed
+19
-1
lines changed- tdutils
- td/utils/port
3 files changed
+19
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
| 37 | + | |
36 | 38 | | |
37 | 39 | | |
38 | 40 | | |
| |||
56 | 58 | | |
57 | 59 | | |
58 | 60 | | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
59 | 71 | | |
60 | 72 | | |
61 | 73 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
319 | 319 | | |
320 | 320 | | |
321 | 321 | | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
322 | 326 | | |
323 | 327 | | |
324 | 328 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
317 | 317 | | |
318 | 318 | | |
319 | 319 | | |
320 | | - | |
| 320 | + | |
321 | 321 | | |
322 | 322 | | |
323 | 323 | | |
| |||
334 | 334 | | |
335 | 335 | | |
336 | 336 | | |
| 337 | + | |
337 | 338 | | |
338 | 339 | | |
339 | 340 | | |
| 341 | + | |
340 | 342 | | |
341 | 343 | | |
342 | 344 | | |
| |||
0 commit comments