Descriptioncmd/go: skip writing dwarf debug info for ephemeral binaries
Update issue 6853
For an ephemeral binary - one created, run, and then deleted -
there is no need to write dwarf debug information, since the
binary will not be used with gdb. In this case, instruct the linker
not to spend time and disk space generating the debug information
by passing the -w flag to the linker.
Omitting dwarf information reduces the size of most binaries by 25%.
We may be more aggressive about this in the future.
Patch Set 1 #Patch Set 2 : diff -r 737767dd81fd https://code.google.com/p/go/ #
Total comments: 2
Patch Set 3 : diff -r 737767dd81fd https://code.google.com/p/go/ #Patch Set 4 : diff -r 737767dd81fd https://code.google.com/p/go/ #Patch Set 5 : diff -r 1b09c63ca02a https://code.google.com/p/go/ #
MessagesTotal messages: 10
|