OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 { | 5 { |
6 'targets': [ | 6 'targets': [ |
7 { | 7 { |
8 'target_name': 'sanitizer_options', | 8 'target_name': 'sanitizer_options', |
9 'type': 'static_library', | 9 'type': 'static_library', |
10 'toolsets': ['host', 'target'], | 10 'toolsets': ['host', 'target'], |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 ['_type=="executable"', { | 59 ['_type=="executable"', { |
60 'xcode_settings': { | 60 'xcode_settings': { |
61 'OTHER_LDFLAGS': [ | 61 'OTHER_LDFLAGS': [ |
62 '-Wl,-u,__sanitizer_options_link_helper', | 62 '-Wl,-u,__sanitizer_options_link_helper', |
63 ], | 63 ], |
64 }, | 64 }, |
65 }], | 65 }], |
66 ], | 66 ], |
67 }, | 67 }, |
68 }, | 68 }, |
| 69 # GN version: //build/sanitizers:copy_llvm_symbolizer |
69 { | 70 { |
70 # Copy llvm-symbolizer to the product dir so that LKGR bots can package it
. | 71 # Copy llvm-symbolizer to the product dir so that LKGR bots can package it
. |
71 'target_name': 'llvm-symbolizer', | 72 'target_name': 'llvm-symbolizer', |
72 'type': 'none', | 73 'type': 'none', |
73 'variables': { | 74 'variables': { |
74 | 75 |
75 # Path is relative to this GYP file. | 76 # Path is relative to this GYP file. |
76 'llvm_symbolizer_path': | 77 'llvm_symbolizer_path': |
77 '../../third_party/llvm-build/Release+Asserts/bin/llvm-symbolizer<(EX
ECUTABLE_SUFFIX)', | 78 '../../third_party/llvm-build/Release+Asserts/bin/llvm-symbolizer<(EX
ECUTABLE_SUFFIX)', |
78 }, | 79 }, |
79 'conditions': [ | 80 'conditions': [ |
80 ['clang==1', { | 81 ['clang==1', { |
81 'copies': [{ | 82 'copies': [{ |
82 'destination': '<(PRODUCT_DIR)', | 83 'destination': '<(PRODUCT_DIR)', |
83 'files': [ | 84 'files': [ |
84 '<(llvm_symbolizer_path)', | 85 '<(llvm_symbolizer_path)', |
85 ], | 86 ], |
86 }], | 87 }], |
87 }], | 88 }], |
88 ], | 89 ], |
89 }, | 90 }, |
90 ], | 91 ], |
91 } | 92 } |
92 | 93 |
OLD | NEW |