diff options
-rw-r--r-- | testing/gtest.gyp | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/testing/gtest.gyp b/testing/gtest.gyp index 42cf571..0598e9b 100644 --- a/testing/gtest.gyp +++ b/testing/gtest.gyp @@ -95,6 +95,30 @@ ], }, }], + ['OS=="ios" and asan==1', { + 'direct_dependent_settings': { + 'target_conditions': [ + # Package the ASan runtime dylib into the test app bundles. + ['_type=="executable"', { + 'postbuilds': [ + { + 'variables': { + # Define copy_asan_dylib_path in a variable ending in + # _path so that gyp understands it's a path and + # performs proper relativization during dict merging. + 'copy_asan_dylib_path': + '<(DEPTH)/build/mac/copy_asan_runtime_dylib.sh', + }, + 'postbuild_name': 'Copy ASan runtime dylib', + 'action': [ + '<(copy_asan_dylib_path)', + ], + }, + ], + }], + ], + }, + }], ['os_posix == 1', { 'defines': [ # gtest isn't able to figure out when RTTI is disabled for gcc |