| Index: build/mac/asan.gyp
|
| diff --git a/build/mac/asan.gyp b/build/mac/asan.gyp
|
| index 73e86416c6981ffffd6f9fa47985f16e6befffd3..91a36d2d4d9f667c53b82a656931e72b2f63985e 100644
|
| --- a/build/mac/asan.gyp
|
| +++ b/build/mac/asan.gyp
|
| @@ -4,7 +4,7 @@
|
|
|
| {
|
| 'targets': [
|
| - {
|
| + {
|
| 'target_name': 'asan_dynamic_runtime',
|
| 'type': 'none',
|
| 'variables': {
|
| @@ -13,7 +13,11 @@
|
| 'prune_self_dependency': 1,
|
| # Path is relative to this GYP file.
|
| 'asan_rtl_mask_path':
|
| - '../../third_party/llvm-build/Release+Asserts/lib/clang/*/lib/darwin/libclang_rt.asan_osx_dynamic.dylib',
|
| + '../../third_party/llvm-build/Release+Asserts/lib/clang/*/lib/darwin',
|
| + 'asan_osx_dynamic':
|
| + '<(asan_rtl_mask_path)/libclang_rt.asan_osx_dynamic.dylib',
|
| + 'asan_iossim_dynamic':
|
| + '<(asan_rtl_mask_path)/libclang_rt.asan_iossim_dynamic.dylib',
|
| },
|
| 'conditions': [
|
| ['OS=="mac"', {
|
| @@ -21,12 +25,25 @@
|
| {
|
| 'destination': '<(PRODUCT_DIR)',
|
| 'files': [
|
| - '<!(/bin/ls <(asan_rtl_mask_path))',
|
| + '<!(/bin/ls <(asan_osx_dynamic))',
|
| + ],
|
| + },
|
| + ],
|
| + }],
|
| + # ASan works with iOS simulator only, not bare-metal iOS.
|
| + ['OS=="ios" and target_arch=="ia32"', {
|
| + 'toolsets': ['host', 'target'],
|
| + 'copies': [
|
| + {
|
| + 'destination': '<(PRODUCT_DIR)',
|
| + 'target_conditions': [
|
| + ['_toolset=="host"', { 'files': [ 'asan_osx_dynamic'] }],
|
| + ['_toolset=="target"', { 'files': [ 'asan_iossim_dynamic'] }],
|
| ],
|
| },
|
| ],
|
| }],
|
| ],
|
| - },
|
| - ],
|
| + },
|
| + ],
|
| }
|
|
|