| 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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 ], | 107 ], |
| 108 }], # OS=="linux" and use_sysroot==1 | 108 }], # OS=="linux" and use_sysroot==1 |
| 109 ], | 109 ], |
| 110 }, | 110 }, |
| 111 'base_dir%': '<(base_dir)', | 111 'base_dir%': '<(base_dir)', |
| 112 'host_arch%': '<(host_arch)', | 112 'host_arch%': '<(host_arch)', |
| 113 'target_arch%': '<(target_arch)', | 113 'target_arch%': '<(target_arch)', |
| 114 'v8_target_arch%': '<(target_arch)', | 114 'v8_target_arch%': '<(target_arch)', |
| 115 'coverage%': '<(coverage)', | 115 'coverage%': '<(coverage)', |
| 116 'sysroot%': '<(sysroot)', | 116 'sysroot%': '<(sysroot)', |
| 117 'pg%': 0, |
| 118 'finstrument%': 0, |
| 117 'asan%': 0, | 119 'asan%': 0, |
| 118 'lsan%': 0, | 120 'lsan%': 0, |
| 119 'msan%': 0, | 121 'msan%': 0, |
| 120 'tsan%': 0, | 122 'tsan%': 0, |
| 121 # Enable coverage gathering instrumentation in sanitizer tools. This flag | 123 # Enable coverage gathering instrumentation in sanitizer tools. This flag |
| 122 # also controls coverage granularity (1 for function-level, 2 for | 124 # also controls coverage granularity (1 for function-level, 2 for |
| 123 # block-level, 3 for edge-level). | 125 # block-level, 3 for edge-level). |
| 124 'sanitizer_coverage%': 0, | 126 'sanitizer_coverage%': 0, |
| 125 | 127 |
| 126 # Use dynamic libraries instrumented by one of the sanitizers | 128 # Use dynamic libraries instrumented by one of the sanitizers |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 'base_dir%': '<(base_dir)', | 189 'base_dir%': '<(base_dir)', |
| 188 'clang_dir%': '<(clang_dir)', | 190 'clang_dir%': '<(clang_dir)', |
| 189 'make_clang_dir%': '<(make_clang_dir)', | 191 'make_clang_dir%': '<(make_clang_dir)', |
| 190 'host_arch%': '<(host_arch)', | 192 'host_arch%': '<(host_arch)', |
| 191 'host_clang%': '<(host_clang)', | 193 'host_clang%': '<(host_clang)', |
| 192 'target_arch%': '<(target_arch)', | 194 'target_arch%': '<(target_arch)', |
| 193 'v8_target_arch%': '<(v8_target_arch)', | 195 'v8_target_arch%': '<(v8_target_arch)', |
| 194 'werror%': '-Werror', | 196 'werror%': '-Werror', |
| 195 'use_goma%': '<(use_goma)', | 197 'use_goma%': '<(use_goma)', |
| 196 'gomadir%': '<(gomadir)', | 198 'gomadir%': '<(gomadir)', |
| 199 'pg%': '<(pg)', |
| 200 'finstrument%': '<(finstrument)', |
| 197 'asan%': '<(asan)', | 201 'asan%': '<(asan)', |
| 198 'lsan%': '<(lsan)', | 202 'lsan%': '<(lsan)', |
| 199 'msan%': '<(msan)', | 203 'msan%': '<(msan)', |
| 200 'tsan%': '<(tsan)', | 204 'tsan%': '<(tsan)', |
| 201 'sanitizer_coverage%': '<(sanitizer_coverage)', | 205 'sanitizer_coverage%': '<(sanitizer_coverage)', |
| 202 'use_prebuilt_instrumented_libraries%': '<(use_prebuilt_instrumented_librari
es)', | 206 'use_prebuilt_instrumented_libraries%': '<(use_prebuilt_instrumented_librari
es)', |
| 203 'use_custom_libcxx%': '<(use_custom_libcxx)', | 207 'use_custom_libcxx%': '<(use_custom_libcxx)', |
| 204 'linux_use_bundled_gold%': '<(linux_use_bundled_gold)', | 208 'linux_use_bundled_gold%': '<(linux_use_bundled_gold)', |
| 205 'use_lto%': '<(use_lto)', | 209 'use_lto%': '<(use_lto)', |
| 206 'cfi_vptr%': '<(cfi_vptr)', | 210 'cfi_vptr%': '<(cfi_vptr)', |
| (...skipping 380 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 587 }, | 591 }, |
| 588 }], | 592 }], |
| 589 ], | 593 ], |
| 590 }], | 594 }], |
| 591 ], | 595 ], |
| 592 }, | 596 }, |
| 593 'conditions': [ | 597 'conditions': [ |
| 594 ['os_posix==1 and OS!="mac"', { | 598 ['os_posix==1 and OS!="mac"', { |
| 595 'target_defaults': { | 599 'target_defaults': { |
| 596 'conditions': [ | 600 'conditions': [ |
| 601 # Binaries compiled with -pg option can be traced with uftrace. |
| 602 ['pg==1', { |
| 603 'target_conditions': [ |
| 604 ['_toolset=="target"', { |
| 605 'cflags': [ |
| 606 '-pg', |
| 607 '-fno-omit-frame-pointer', |
| 608 ], |
| 609 'ldflags': [ |
| 610 '-pg', |
| 611 '-fno-omit-frame-pointer', |
| 612 ], |
| 613 }], |
| 614 ], |
| 615 }], |
| 616 # Binaries compiled with -finstrument-functions option can be traced |
| 617 # with uftrace. |
| 618 ['finstrument==1', { |
| 619 'target_conditions': [ |
| 620 ['_toolset=="target"', { |
| 621 'cflags': [ |
| 622 '-finstrument-functions', |
| 623 '-fno-omit-frame-pointer', |
| 624 ], |
| 625 'ldflags': [ |
| 626 '-finstrument-functions', |
| 627 '-fno-omit-frame-pointer', |
| 628 ], |
| 629 }], |
| 630 ], |
| 631 }], |
| 597 # Common options for AddressSanitizer, LeakSanitizer, | 632 # Common options for AddressSanitizer, LeakSanitizer, |
| 598 # ThreadSanitizer, MemorySanitizer and CFI builds. | 633 # ThreadSanitizer, MemorySanitizer and CFI builds. |
| 599 ['asan==1 or lsan==1 or tsan==1 or msan==1 or cfi_vptr==1', { | 634 ['asan==1 or lsan==1 or tsan==1 or msan==1 or cfi_vptr==1', { |
| 600 'target_conditions': [ | 635 'target_conditions': [ |
| 601 ['_toolset=="target"', { | 636 ['_toolset=="target"', { |
| 602 'cflags': [ | 637 'cflags': [ |
| 603 '-fno-omit-frame-pointer', | 638 '-fno-omit-frame-pointer', |
| 604 '-gline-tables-only', | 639 '-gline-tables-only', |
| 605 ], | 640 ], |
| 606 'cflags!': [ | 641 'cflags!': [ |
| (...skipping 906 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1513 '-fsanitize=cfi-vcall', | 1548 '-fsanitize=cfi-vcall', |
| 1514 '-fsanitize=cfi-derived-cast', | 1549 '-fsanitize=cfi-derived-cast', |
| 1515 '-fsanitize=cfi-unrelated-cast', | 1550 '-fsanitize=cfi-unrelated-cast', |
| 1516 ], | 1551 ], |
| 1517 }], | 1552 }], |
| 1518 ], | 1553 ], |
| 1519 }, | 1554 }, |
| 1520 }], | 1555 }], |
| 1521 ], | 1556 ], |
| 1522 } | 1557 } |
| OLD | NEW |