| 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 # OS!="linux" and OS!="freebsd" and OS!="openbsd" and | 61 # OS!="linux" and OS!="freebsd" and OS!="openbsd" and |
| 62 # OS!="netbsd" and OS!="mac" and OS!="aix" | 62 # OS!="netbsd" and OS!="mac" and OS!="aix" |
| 63 'host_arch%': 'ia32', | 63 'host_arch%': 'ia32', |
| 64 }], | 64 }], |
| 65 ], | 65 ], |
| 66 }, | 66 }, |
| 67 'host_arch%': '<(host_arch)', | 67 'host_arch%': '<(host_arch)', |
| 68 'target_arch%': '<(host_arch)', | 68 'target_arch%': '<(host_arch)', |
| 69 'base_dir%': '<!(cd <(DEPTH) && python -c "import os; print os.getcwd()"
)', | 69 'base_dir%': '<!(cd <(DEPTH) && python -c "import os; print os.getcwd()"
)', |
| 70 | 70 |
| 71 # Instrument for code coverage with gcov. | 71 # Instrument for code coverage and use coverage wrapper to exclude some |
| 72 # files. Uses gcov if clang=0 is set explicitly. Otherwise, |
| 73 # sanitizer_coverage must be set too. |
| 72 'coverage%': 0, | 74 'coverage%': 0, |
| 73 }, | 75 }, |
| 74 'base_dir%': '<(base_dir)', | 76 'base_dir%': '<(base_dir)', |
| 75 'host_arch%': '<(host_arch)', | 77 'host_arch%': '<(host_arch)', |
| 76 'target_arch%': '<(target_arch)', | 78 'target_arch%': '<(target_arch)', |
| 77 'v8_target_arch%': '<(target_arch)', | 79 'v8_target_arch%': '<(target_arch)', |
| 78 'coverage%': '<(coverage)', | 80 'coverage%': '<(coverage)', |
| 79 'asan%': 0, | 81 'asan%': 0, |
| 80 'lsan%': 0, | 82 'lsan%': 0, |
| 81 'msan%': 0, | 83 'msan%': 0, |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 | 117 |
| 116 'test_isolation_mode%': 'noop', | 118 'test_isolation_mode%': 'noop', |
| 117 | 119 |
| 118 'conditions': [ | 120 'conditions': [ |
| 119 # Set default gomadir. | 121 # Set default gomadir. |
| 120 ['OS=="win"', { | 122 ['OS=="win"', { |
| 121 'gomadir': 'c:\\goma\\goma-win', | 123 'gomadir': 'c:\\goma\\goma-win', |
| 122 }, { | 124 }, { |
| 123 'gomadir': '<!(/bin/echo -n ${HOME}/goma)', | 125 'gomadir': '<!(/bin/echo -n ${HOME}/goma)', |
| 124 }], | 126 }], |
| 125 ['host_arch!="ppc" and host_arch!="ppc64" and host_arch!="ppc64le" and h
ost_arch!="s390" and host_arch!="s390x" and \ | 127 ['host_arch!="ppc" and host_arch!="ppc64" and host_arch!="ppc64le" and h
ost_arch!="s390" and host_arch!="s390x"', { |
| 126 coverage==0', { | |
| 127 'host_clang%': 1, | 128 'host_clang%': 1, |
| 128 }, { | 129 }, { |
| 129 'host_clang%': 0, | 130 'host_clang%': 0, |
| 130 }], | 131 }], |
| 131 # linux_use_bundled_gold: whether to use the gold linker binary checked | 132 # linux_use_bundled_gold: whether to use the gold linker binary checked |
| 132 # into third_party/binutils. Force this off via GYP_DEFINES when you | 133 # into third_party/binutils. Force this off via GYP_DEFINES when you |
| 133 # are using a custom toolchain and need to control -B in ldflags. | 134 # are using a custom toolchain and need to control -B in ldflags. |
| 134 # Do not use 32-bit gold on 32-bit hosts as it runs out address space | 135 # Do not use 32-bit gold on 32-bit hosts as it runs out address space |
| 135 # for component=static_library builds. | 136 # for component=static_library builds. |
| 136 ['(OS=="linux" or OS=="android") and (target_arch=="x64" or target_arch=
="arm" or (target_arch=="ia32" and host_arch=="x64"))', { | 137 ['(OS=="linux" or OS=="android") and (target_arch=="x64" or target_arch=
="arm" or (target_arch=="ia32" and host_arch=="x64"))', { |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 221 # goma doesn't support PDB yet. | 222 # goma doesn't support PDB yet. |
| 222 'fastbuild%': 1, | 223 'fastbuild%': 1, |
| 223 }], | 224 }], |
| 224 ['((v8_target_arch=="ia32" or v8_target_arch=="x64" or v8_target_arch=="x8
7") and \ | 225 ['((v8_target_arch=="ia32" or v8_target_arch=="x64" or v8_target_arch=="x8
7") and \ |
| 225 (OS=="linux" or OS=="mac")) or (v8_target_arch=="ppc64" and OS=="linux")
', { | 226 (OS=="linux" or OS=="mac")) or (v8_target_arch=="ppc64" and OS=="linux")
', { |
| 226 'v8_enable_gdbjit%': 1, | 227 'v8_enable_gdbjit%': 1, |
| 227 }, { | 228 }, { |
| 228 'v8_enable_gdbjit%': 0, | 229 'v8_enable_gdbjit%': 0, |
| 229 }], | 230 }], |
| 230 ['(OS=="linux" or OS=="mac") and (target_arch=="ia32" or target_arch=="x64
") and \ | 231 ['(OS=="linux" or OS=="mac") and (target_arch=="ia32" or target_arch=="x64
") and \ |
| 231 (v8_target_arch!="x87" and v8_target_arch!="x32") and coverage==0', { | 232 (v8_target_arch!="x87" and v8_target_arch!="x32")', { |
| 232 'clang%': 1, | 233 'clang%': 1, |
| 233 }, { | 234 }, { |
| 234 'clang%': 0, | 235 'clang%': 0, |
| 235 }], | 236 }], |
| 236 ['asan==1 or lsan==1 or msan==1 or tsan==1', { | 237 ['asan==1 or lsan==1 or msan==1 or tsan==1', { |
| 237 'clang%': 1, | 238 'clang%': 1, |
| 238 'use_allocator%': 'none', | 239 'use_allocator%': 'none', |
| 239 }], | 240 }], |
| 240 ['asan==1 and OS=="linux"', { | 241 ['asan==1 and OS=="linux"', { |
| 241 'use_custom_libcxx%': 1, | 242 'use_custom_libcxx%': 1, |
| (...skipping 478 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 720 }], | 721 }], |
| 721 [ 'host_arch=="ppc64" and OS!="aix"', { | 722 [ 'host_arch=="ppc64" and OS!="aix"', { |
| 722 'cflags': [ '-mminimal-toc' ], | 723 'cflags': [ '-mminimal-toc' ], |
| 723 }], | 724 }], |
| 724 [ 'visibility=="hidden" and v8_enable_backtrace==0', { | 725 [ 'visibility=="hidden" and v8_enable_backtrace==0', { |
| 725 'cflags': [ '-fvisibility=hidden' ], | 726 'cflags': [ '-fvisibility=hidden' ], |
| 726 }], | 727 }], |
| 727 [ 'component=="shared_library"', { | 728 [ 'component=="shared_library"', { |
| 728 'cflags': [ '-fPIC', ], | 729 'cflags': [ '-fPIC', ], |
| 729 }], | 730 }], |
| 730 [ 'coverage==1', { | 731 [ 'clang==0 and coverage==1', { |
| 731 'cflags': [ '-fprofile-arcs', '-ftest-coverage'], | 732 'cflags': [ '-fprofile-arcs', '-ftest-coverage'], |
| 732 'ldflags': [ '-fprofile-arcs'], | 733 'ldflags': [ '-fprofile-arcs'], |
| 733 }], | 734 }], |
| 734 ], | 735 ], |
| 735 }, | 736 }, |
| 736 }], | 737 }], |
| 737 # 'OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" | 738 # 'OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" |
| 738 # or OS=="netbsd"' | 739 # or OS=="netbsd"' |
| 739 ['OS=="qnx"', { | 740 ['OS=="qnx"', { |
| 740 'target_defaults': { | 741 'target_defaults': { |
| (...skipping 644 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1385 '-fsanitize=cfi-vcall', | 1386 '-fsanitize=cfi-vcall', |
| 1386 '-fsanitize=cfi-derived-cast', | 1387 '-fsanitize=cfi-derived-cast', |
| 1387 '-fsanitize=cfi-unrelated-cast', | 1388 '-fsanitize=cfi-unrelated-cast', |
| 1388 ], | 1389 ], |
| 1389 }], | 1390 }], |
| 1390 ], | 1391 ], |
| 1391 }, | 1392 }, |
| 1392 }], | 1393 }], |
| 1393 ], | 1394 ], |
| 1394 } | 1395 } |
| OLD | NEW |