summaryrefslogtreecommitdiffstats
path: root/build/common.gypi
diff options
context:
space:
mode:
Diffstat (limited to 'build/common.gypi')
-rw-r--r--build/common.gypi12
1 files changed, 12 insertions, 0 deletions
diff --git a/build/common.gypi b/build/common.gypi
index dd99925..fac1a9e 100644
--- a/build/common.gypi
+++ b/build/common.gypi
@@ -1092,6 +1092,11 @@
'clang_load%': '',
'clang_add_plugin%': '',
+ # Tell ld64 to write map files describing binary layout. Useful
+ # for looking at what contributes to binary size, e.g. with
+ # https://github.com/nico/bloat
+ 'mac_write_linker_maps%': 0,
+
# The default type of gtest.
'gtest_target_type%': 'executable',
@@ -4092,6 +4097,13 @@
],
},
}],
+ ['mac_write_linker_maps==1', {
+ 'xcode_settings': {
+ 'OTHER_LDFLAGS': [
+ '-Wl,-map,>(_target_name).map',
+ ],
+ },
+ }],
],
}],
['_mac_bundle', {