| 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 17 matching lines...) Expand all Loading... |
| 28 # Definitions to be used when building stand-alone V8 binaries. | 28 # Definitions to be used when building stand-alone V8 binaries. |
| 29 | 29 |
| 30 { | 30 { |
| 31 # We need to include toolchain.gypi here for third-party sources that don't | 31 # We need to include toolchain.gypi here for third-party sources that don't |
| 32 # directly include it themselves. | 32 # directly include it themselves. |
| 33 'includes': ['toolchain.gypi'], | 33 'includes': ['toolchain.gypi'], |
| 34 'variables': { | 34 'variables': { |
| 35 'component%': 'static_library', | 35 'component%': 'static_library', |
| 36 'clang_dir%': 'third_party/llvm-build/Release+Asserts', | 36 'clang_dir%': 'third_party/llvm-build/Release+Asserts', |
| 37 'clang_xcode%': 0, | 37 'clang_xcode%': 0, |
| 38 # Track where uninitialized memory originates from. From fastest to | |
| 39 # slowest: 0 - no tracking, 1 - track only the initial allocation site, 2 | |
| 40 # - track the chain of stores leading from allocation site to use site. | |
| 41 'msan_track_origins%': 1, | |
| 42 'visibility%': 'hidden', | 38 'visibility%': 'hidden', |
| 43 'v8_enable_backtrace%': 0, | 39 'v8_enable_backtrace%': 0, |
| 44 'v8_enable_i18n_support%': 1, | 40 'v8_enable_i18n_support%': 1, |
| 45 'v8_deprecation_warnings': 1, | 41 'v8_deprecation_warnings': 1, |
| 46 'msvs_multi_core_compile%': '1', | 42 'msvs_multi_core_compile%': '1', |
| 47 'mac_deployment_target%': '10.5', | 43 'mac_deployment_target%': '10.5', |
| 48 'release_extra_cflags%': '', | 44 'release_extra_cflags%': '', |
| 49 'variables': { | 45 'variables': { |
| 50 'variables': { | 46 'variables': { |
| 51 'variables': { | 47 'variables': { |
| (...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 312 ], | 308 ], |
| 313 'ldflags': [ | 309 'ldflags': [ |
| 314 '-fsanitize=thread', | 310 '-fsanitize=thread', |
| 315 '-pie', | 311 '-pie', |
| 316 ], | 312 ], |
| 317 'defines': [ | 313 'defines': [ |
| 318 'THREAD_SANITIZER', | 314 'THREAD_SANITIZER', |
| 319 ], | 315 ], |
| 320 }, | 316 }, |
| 321 }], | 317 }], |
| 322 ['msan==1 and OS!="mac"', { | |
| 323 'target_defaults': { | |
| 324 'cflags_cc+': [ | |
| 325 '-fno-omit-frame-pointer', | |
| 326 '-gline-tables-only', | |
| 327 '-fsanitize=memory', | |
| 328 '-fsanitize-memory-track-origins=<(msan_track_origins)', | |
| 329 '-fPIC', | |
| 330 ], | |
| 331 'cflags+': [ | |
| 332 '-fPIC', | |
| 333 ], | |
| 334 'cflags!': [ | |
| 335 '-fno-exceptions', | |
| 336 '-fomit-frame-pointer', | |
| 337 ], | |
| 338 'ldflags': [ | |
| 339 '-fsanitize=memory', | |
| 340 ], | |
| 341 'defines': [ | |
| 342 'MEMORY_SANITIZER', | |
| 343 ], | |
| 344 'dependencies': [ | |
| 345 # Use libc++ (third_party/libc++ and third_party/libc++abi) instead of | |
| 346 # stdlibc++ as standard library. This is intended to use for instrumen
ted | |
| 347 # builds. | |
| 348 '<(DEPTH)/buildtools/third_party/libc++/libc++.gyp:libcxx_proxy', | |
| 349 ], | |
| 350 }, | |
| 351 }], | |
| 352 ['asan==1 and OS=="mac"', { | 318 ['asan==1 and OS=="mac"', { |
| 353 'target_defaults': { | 319 'target_defaults': { |
| 354 'xcode_settings': { | 320 'xcode_settings': { |
| 355 'OTHER_CFLAGS+': [ | 321 'OTHER_CFLAGS+': [ |
| 356 '-fno-omit-frame-pointer', | 322 '-fno-omit-frame-pointer', |
| 357 '-gline-tables-only', | 323 '-gline-tables-only', |
| 358 '-fsanitize=address', | 324 '-fsanitize=address', |
| 359 '-w', # http://crbug.com/162783 | 325 '-w', # http://crbug.com/162783 |
| 360 ], | 326 ], |
| 361 'OTHER_CFLAGS!': [ | 327 'OTHER_CFLAGS!': [ |
| (...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 630 ['use_goma==1 and ("<(GENERATOR)"=="ninja" or clang==1)', { | 596 ['use_goma==1 and ("<(GENERATOR)"=="ninja" or clang==1)', { |
| 631 'make_global_settings': [ | 597 'make_global_settings': [ |
| 632 ['CC_wrapper', '<(gomadir)/gomacc'], | 598 ['CC_wrapper', '<(gomadir)/gomacc'], |
| 633 ['CXX_wrapper', '<(gomadir)/gomacc'], | 599 ['CXX_wrapper', '<(gomadir)/gomacc'], |
| 634 ['CC.host_wrapper', '<(gomadir)/gomacc'], | 600 ['CC.host_wrapper', '<(gomadir)/gomacc'], |
| 635 ['CXX.host_wrapper', '<(gomadir)/gomacc'], | 601 ['CXX.host_wrapper', '<(gomadir)/gomacc'], |
| 636 ], | 602 ], |
| 637 }], | 603 }], |
| 638 ], | 604 ], |
| 639 } | 605 } |
| OLD | NEW |