DescriptionChange some source_sets to static_library to shrink binary
The gn generated binaries are bigger than the gyp generated binaries.
One of the known differences was due to the nacl_global_rng and
g_NaCl_log_gio global variables which are in gn's chrome.dll but not in
gyp's. In some cases these global variables can serve as effective
canaries - removing them can lead to much code going away as well.
Changing from source_set to static_library means that the linker is not
required to link in the associated .obj files, which can save time and
space.
In this case no code was removed so the space savings was small - just
the 1.5 KB of space consumed by the globals.
R=phosek@chromium.org
BUG=630755
Committed: https://chromium.googlesource.com/native_client/src/native_client/+/508aaa7b011729ee6eaab3384b89a7bfd0ecba73
Patch Set 1 #
Messages
Total messages: 11 (4 generated)
|