| 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 668 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 679 'target_defaults': { | 679 'target_defaults': { |
| 680 'cflags': [ | 680 'cflags': [ |
| 681 '-Wall', | 681 '-Wall', |
| 682 '<(werror)', | 682 '<(werror)', |
| 683 '-Wno-unused-parameter', | 683 '-Wno-unused-parameter', |
| 684 '-Wno-long-long', | 684 '-Wno-long-long', |
| 685 '-pthread', | 685 '-pthread', |
| 686 '-pedantic', | 686 '-pedantic', |
| 687 # Don't warn about the "struct foo f = {0};" initialization pattern. | 687 # Don't warn about the "struct foo f = {0};" initialization pattern. |
| 688 '-Wno-missing-field-initializers', | 688 '-Wno-missing-field-initializers', |
| 689 '-Wno-gnu-zero-variadic-macro-arguments', |
| 689 ], | 690 ], |
| 690 'cflags_cc': [ | 691 'cflags_cc': [ |
| 691 '-Wnon-virtual-dtor', | 692 '-Wnon-virtual-dtor', |
| 692 '-fno-exceptions', | 693 '-fno-exceptions', |
| 693 '-fno-rtti', | 694 '-fno-rtti', |
| 694 '-std=gnu++0x', | 695 '-std=gnu++0x', |
| 695 ], | 696 ], |
| 696 'ldflags': [ '-pthread', ], | 697 'ldflags': [ '-pthread', ], |
| 697 'conditions': [ | 698 'conditions': [ |
| 699 # Don't warn about TRACE_EVENT_* macros with zero arguments passed to |
| 700 # ##__VA_ARGS__. C99 strict mode prohibits having zero variadic macro |
| 701 # arguments in gcc. |
| 702 [ 'clang==0', { |
| 703 'cflags!' : [ |
| 704 '-pedantic' , |
| 705 # Don't warn about unrecognized command line option. |
| 706 '-Wno-gnu-zero-variadic-macro-arguments', |
| 707 ], |
| 708 }], |
| 698 [ 'clang==1 and (v8_target_arch=="x64" or v8_target_arch=="arm64" \ | 709 [ 'clang==1 and (v8_target_arch=="x64" or v8_target_arch=="arm64" \ |
| 699 or v8_target_arch=="mips64el")', { | 710 or v8_target_arch=="mips64el")', { |
| 700 'cflags': [ '-Wshorten-64-to-32' ], | 711 'cflags': [ '-Wshorten-64-to-32' ], |
| 701 }], | 712 }], |
| 702 [ 'host_arch=="ppc64" and OS!="aix"', { | 713 [ 'host_arch=="ppc64" and OS!="aix"', { |
| 703 'cflags': [ '-mminimal-toc' ], | 714 'cflags': [ '-mminimal-toc' ], |
| 704 }], | 715 }], |
| 705 [ 'visibility=="hidden" and v8_enable_backtrace==0', { | 716 [ 'visibility=="hidden" and v8_enable_backtrace==0', { |
| 706 'cflags': [ '-fvisibility=hidden' ], | 717 'cflags': [ '-fvisibility=hidden' ], |
| 707 }], | 718 }], |
| (...skipping 11 matching lines...) Expand all Loading... |
| 719 # 'OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" | 730 # 'OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" |
| 720 # or OS=="netbsd"' | 731 # or OS=="netbsd"' |
| 721 ['OS=="qnx"', { | 732 ['OS=="qnx"', { |
| 722 'target_defaults': { | 733 'target_defaults': { |
| 723 'cflags': [ | 734 'cflags': [ |
| 724 '-Wall', | 735 '-Wall', |
| 725 '<(werror)', | 736 '<(werror)', |
| 726 '-Wno-unused-parameter', | 737 '-Wno-unused-parameter', |
| 727 # Don't warn about the "struct foo f = {0};" initialization pattern. | 738 # Don't warn about the "struct foo f = {0};" initialization pattern. |
| 728 '-Wno-missing-field-initializers', | 739 '-Wno-missing-field-initializers', |
| 740 '-Wno-gnu-zero-variadic-macro-arguments', |
| 729 ], | 741 ], |
| 730 'cflags_cc': [ | 742 'cflags_cc': [ |
| 731 '-Wnon-virtual-dtor', | 743 '-Wnon-virtual-dtor', |
| 732 '-fno-exceptions', | 744 '-fno-exceptions', |
| 733 '-fno-rtti', | 745 '-fno-rtti', |
| 734 '-std=gnu++0x', | 746 '-std=gnu++0x', |
| 735 ], | 747 ], |
| 736 'conditions': [ | 748 'conditions': [ |
| 737 [ 'visibility=="hidden"', { | 749 [ 'visibility=="hidden"', { |
| 738 'cflags': [ '-fvisibility=hidden' ], | 750 'cflags': [ '-fvisibility=hidden' ], |
| (...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 943 'USE_HEADERMAP': 'NO', | 955 'USE_HEADERMAP': 'NO', |
| 944 'OTHER_CFLAGS': [ | 956 'OTHER_CFLAGS': [ |
| 945 '-fno-strict-aliasing', | 957 '-fno-strict-aliasing', |
| 946 ], | 958 ], |
| 947 'WARNING_CFLAGS': [ | 959 'WARNING_CFLAGS': [ |
| 948 '-Wall', | 960 '-Wall', |
| 949 '-Wendif-labels', | 961 '-Wendif-labels', |
| 950 '-Wno-unused-parameter', | 962 '-Wno-unused-parameter', |
| 951 # Don't warn about the "struct foo f = {0};" initialization pattern. | 963 # Don't warn about the "struct foo f = {0};" initialization pattern. |
| 952 '-Wno-missing-field-initializers', | 964 '-Wno-missing-field-initializers', |
| 965 '-Wno-gnu-zero-variadic-macro-arguments', |
| 953 ], | 966 ], |
| 954 }, | 967 }, |
| 955 'conditions': [ | 968 'conditions': [ |
| 956 ['werror==""', { | 969 ['werror==""', { |
| 957 'xcode_settings': {'GCC_TREAT_WARNINGS_AS_ERRORS': 'NO'}, | 970 'xcode_settings': {'GCC_TREAT_WARNINGS_AS_ERRORS': 'NO'}, |
| 958 }, { | 971 }, { |
| 959 'xcode_settings': {'GCC_TREAT_WARNINGS_AS_ERRORS': 'YES'}, | 972 'xcode_settings': {'GCC_TREAT_WARNINGS_AS_ERRORS': 'YES'}, |
| 960 }], | 973 }], |
| 961 ['clang==1', { | 974 ['clang==1', { |
| 962 'xcode_settings': { | 975 'xcode_settings': { |
| (...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1349 '-fsanitize=cfi-vcall', | 1362 '-fsanitize=cfi-vcall', |
| 1350 '-fsanitize=cfi-derived-cast', | 1363 '-fsanitize=cfi-derived-cast', |
| 1351 '-fsanitize=cfi-unrelated-cast', | 1364 '-fsanitize=cfi-unrelated-cast', |
| 1352 ], | 1365 ], |
| 1353 }], | 1366 }], |
| 1354 ], | 1367 ], |
| 1355 }, | 1368 }, |
| 1356 }], | 1369 }], |
| 1357 ], | 1370 ], |
| 1358 } | 1371 } |
| OLD | NEW |