Index: build/common.gypi |
diff --git a/build/common.gypi b/build/common.gypi |
index dd999251dbad7a0367cabd9752e680b9cb70153d..fac1a9e80a39449f91bec51eafc8c451240ea106 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', { |