-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
make: Optionally include debug symbols with builds (#193)
Per #2199, we want to be able to include the proxy's debug symbols in auxiliary diagnostic containers. In order to do this, the process that produces the proxy's binaries also should be responsible for producing its debug symbols. This change adds a new environment variable, `CARGO_DEBUG`, which the Makefile uses to instrument the build to produce debug symbols. If `objcopy` is available on the local system (i.e. on Linux), then the symbols are copied from the binary into a .obj file, and the executable is stripped (from 3.3G down to 9.9M) before packaging. This increases the size of the compressed package artifact by 76% (from 5.0M to 8.8M). This may have similar impacts on build time. To that end, CARGO_DEBUG is not enabled in CI yet. CI has been changed, however, to use build stages. Now, master will undergo the same test stage as PRs, though packages are only built & published for master.
- Loading branch information
Showing
2 changed files
with
29 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters