Commit 1791b7c
committed
build: add split-debug release and package targets
Add Makefile support for generating separate debug symbol artifacts
from release builds while keeping distributed binaries stripped.
`make release-debug-artifacts` builds `out/Release/nsolid`,
writes `out/Release/nsolid.debug`, strips the release binary,
and adds a debug link back to it.
`make binary SEPARATE_DEBUG_SYMBOLS=1` passes `--debug-symbols`
to `./configure`, strips the packaged `bin/nsolid`, and writes a
separate `$(BINARYNAME).debug` artifact for upload to debuginfod.
`make binary` keeps the previous behavior and does not generate a
separate debug symbol artifact.
Signed-off-by: Santiago Gimeno <santiago.gimeno@gmail.com>1 parent 447b0e5 commit 1791b7c
1 file changed
Lines changed: 25 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
25 | 28 | | |
26 | 29 | | |
27 | 30 | | |
| |||
87 | 90 | | |
88 | 91 | | |
89 | 92 | | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
90 | 102 | | |
91 | 103 | | |
92 | 104 | | |
93 | 105 | | |
94 | 106 | | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
95 | 110 | | |
96 | 111 | | |
97 | 112 | | |
| |||
630 | 645 | | |
631 | 646 | | |
632 | 647 | | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
633 | 655 | | |
634 | 656 | | |
635 | 657 | | |
| |||
1325 | 1347 | | |
1326 | 1348 | | |
1327 | 1349 | | |
| 1350 | + | |
| 1351 | + | |
| 1352 | + | |
1328 | 1353 | | |
1329 | 1354 | | |
1330 | 1355 | | |
| |||
0 commit comments