OLD | NEW |
1 # Copyright 2012 the V8 project authors. All rights reserved. | 1 # Copyright 2012 the V8 project authors. All rights reserved. |
2 # Redistribution and use in source and binary forms, with or without | 2 # Redistribution and use in source and binary forms, with or without |
3 # modification, are permitted provided that the following conditions are | 3 # modification, are permitted provided that the following conditions are |
4 # met: | 4 # met: |
5 # | 5 # |
6 # * Redistributions of source code must retain the above copyright | 6 # * Redistributions of source code must retain the above copyright |
7 # notice, this list of conditions and the following disclaimer. | 7 # notice, this list of conditions and the following disclaimer. |
8 # * Redistributions in binary form must reproduce the above | 8 # * Redistributions in binary form must reproduce the above |
9 # copyright notice, this list of conditions and the following | 9 # copyright notice, this list of conditions and the following |
10 # disclaimer in the documentation and/or other materials provided | 10 # disclaimer in the documentation and/or other materials provided |
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
194 'VCCLCompilerTool': { | 194 'VCCLCompilerTool': { |
195 'WarnAsError': 'false', | 195 'WarnAsError': 'false', |
196 }, | 196 }, |
197 }, | 197 }, |
198 }], | 198 }], |
199 ], | 199 ], |
200 }], | 200 }], |
201 ], | 201 ], |
202 }, | 202 }, |
203 'conditions': [ | 203 'conditions': [ |
204 ['asan==1', { | 204 ['asan==1 and OS!="mac"', { |
205 'target_defaults': { | 205 'target_defaults': { |
206 'cflags_cc+': [ | 206 'cflags_cc+': [ |
207 '-fno-omit-frame-pointer', | 207 '-fno-omit-frame-pointer', |
208 '-gline-tables-only', | 208 '-gline-tables-only', |
209 '-fsanitize=address', | 209 '-fsanitize=address', |
210 '-w', # http://crbug.com/162783 | 210 '-w', # http://crbug.com/162783 |
211 ], | 211 ], |
212 'cflags_cc!': [ | 212 'cflags!': [ |
213 '-fomit-frame-pointer', | 213 '-fomit-frame-pointer', |
214 ], | 214 ], |
215 'ldflags': [ | 215 'ldflags': [ |
216 '-fsanitize=address', | 216 '-fsanitize=address', |
217 ], | 217 ], |
218 }, | 218 }, |
219 }], | 219 }], |
220 ['tsan==1', { | 220 ['tsan==1 and OS!="mac"', { |
221 'target_defaults': { | 221 'target_defaults': { |
222 'cflags+': [ | 222 'cflags+': [ |
223 '-fno-omit-frame-pointer', | 223 '-fno-omit-frame-pointer', |
224 '-gline-tables-only', | 224 '-gline-tables-only', |
225 '-fsanitize=thread', | 225 '-fsanitize=thread', |
226 '-fPIC', | 226 '-fPIC', |
227 '-Wno-c++11-extensions', | 227 '-Wno-c++11-extensions', |
228 ], | 228 ], |
229 'cflags!': [ | 229 'cflags!': [ |
230 '-fomit-frame-pointer', | 230 '-fomit-frame-pointer', |
231 ], | 231 ], |
232 'ldflags': [ | 232 'ldflags': [ |
233 '-fsanitize=thread', | 233 '-fsanitize=thread', |
234 '-pie', | 234 '-pie', |
235 ], | 235 ], |
236 'defines': [ | 236 'defines': [ |
237 'THREAD_SANITIZER', | 237 'THREAD_SANITIZER', |
238 ], | 238 ], |
239 }, | 239 }, |
240 }], | 240 }], |
| 241 ['asan==1 and OS=="mac"', { |
| 242 'target_defaults': { |
| 243 'xcode_settings': { |
| 244 'OTHER_CFLAGS+': [ |
| 245 '-fno-omit-frame-pointer', |
| 246 '-gline-tables-only', |
| 247 '-fsanitize=address', |
| 248 '-w', # http://crbug.com/162783 |
| 249 ], |
| 250 'OTHER_CFLAGS!': [ |
| 251 '-fomit-frame-pointer', |
| 252 ], |
| 253 }, |
| 254 'target_conditions': [ |
| 255 ['_type!="static_library"', { |
| 256 'xcode_settings': {'OTHER_LDFLAGS': ['-fsanitize=address']}, |
| 257 }], |
| 258 ], |
| 259 'dependencies': [ |
| 260 '<(DEPTH)/build/mac/asan.gyp:asan_dynamic_runtime', |
| 261 ], |
| 262 }, |
| 263 }], |
241 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" \ | 264 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" \ |
242 or OS=="netbsd"', { | 265 or OS=="netbsd"', { |
243 'target_defaults': { | 266 'target_defaults': { |
244 'cflags': [ | 267 'cflags': [ |
245 '-Wall', | 268 '-Wall', |
246 '<(werror)', | 269 '<(werror)', |
247 '-W', | 270 '-W', |
248 '-Wno-unused-parameter', | 271 '-Wno-unused-parameter', |
249 '-Wno-long-long', | 272 '-Wno-long-long', |
250 '-pthread', | 273 '-pthread', |
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
451 ], | 474 ], |
452 }], | 475 }], |
453 ['clang==1 and OS=="win"', { | 476 ['clang==1 and OS=="win"', { |
454 'make_global_settings': [ | 477 'make_global_settings': [ |
455 # On Windows, gyp's ninja generator only looks at CC. | 478 # On Windows, gyp's ninja generator only looks at CC. |
456 ['CC', '<(make_clang_dir)/bin/clang-cl'], | 479 ['CC', '<(make_clang_dir)/bin/clang-cl'], |
457 ], | 480 ], |
458 }], | 481 }], |
459 ], | 482 ], |
460 } | 483 } |
OLD | NEW |