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 455 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
466 '-Wno-missing-field-initializers', | 466 '-Wno-missing-field-initializers', |
467 ], | 467 ], |
468 'cflags_cc': [ | 468 'cflags_cc': [ |
469 '-Wnon-virtual-dtor', | 469 '-Wnon-virtual-dtor', |
470 '-fno-exceptions', | 470 '-fno-exceptions', |
471 '-fno-rtti', | 471 '-fno-rtti', |
472 '-std=gnu++0x', | 472 '-std=gnu++0x', |
473 ], | 473 ], |
474 'ldflags': [ '-pthread', ], | 474 'ldflags': [ '-pthread', ], |
475 'conditions': [ | 475 'conditions': [ |
476 [ 'clang==1 and (v8_target_arch=="x64" or v8_target_arch=="arm64")', { | 476 [ 'clang==1 and (v8_target_arch=="x64" or v8_target_arch=="arm64" \ |
| 477 or v8_target_arch=="mips64el")', { |
477 'cflags': [ '-Wshorten-64-to-32' ], | 478 'cflags': [ '-Wshorten-64-to-32' ], |
478 }], | 479 }], |
479 [ 'host_arch=="ppc64" and OS!="aix"', { | 480 [ 'host_arch=="ppc64" and OS!="aix"', { |
480 'cflags': [ '-mminimal-toc' ], | 481 'cflags': [ '-mminimal-toc' ], |
481 }], | 482 }], |
482 [ 'visibility=="hidden" and v8_enable_backtrace==0', { | 483 [ 'visibility=="hidden" and v8_enable_backtrace==0', { |
483 'cflags': [ '-fvisibility=hidden' ], | 484 'cflags': [ '-fvisibility=hidden' ], |
484 }], | 485 }], |
485 [ 'component=="shared_library"', { | 486 [ 'component=="shared_library"', { |
486 'cflags': [ '-fPIC', ], | 487 'cflags': [ '-fPIC', ], |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
650 ['werror==""', { | 651 ['werror==""', { |
651 'xcode_settings': {'GCC_TREAT_WARNINGS_AS_ERRORS': 'NO'}, | 652 'xcode_settings': {'GCC_TREAT_WARNINGS_AS_ERRORS': 'NO'}, |
652 }, { | 653 }, { |
653 'xcode_settings': {'GCC_TREAT_WARNINGS_AS_ERRORS': 'YES'}, | 654 'xcode_settings': {'GCC_TREAT_WARNINGS_AS_ERRORS': 'YES'}, |
654 }], | 655 }], |
655 ['clang==1', { | 656 ['clang==1', { |
656 'xcode_settings': { | 657 'xcode_settings': { |
657 'GCC_VERSION': 'com.apple.compilers.llvm.clang.1_0', | 658 'GCC_VERSION': 'com.apple.compilers.llvm.clang.1_0', |
658 'CLANG_CXX_LANGUAGE_STANDARD': 'gnu++0x', # -std=gnu++0x | 659 'CLANG_CXX_LANGUAGE_STANDARD': 'gnu++0x', # -std=gnu++0x |
659 }, | 660 }, |
| 661 'conditions': [ |
| 662 ['v8_target_arch=="x64" or v8_target_arch=="arm64" \ |
| 663 or v8_target_arch=="mips64el"', { |
| 664 'xcode_settings': {'WARNING_CFLAGS': ['-Wshorten-64-to-32']}, |
| 665 }], |
| 666 ] |
660 }], | 667 }], |
661 ], | 668 ], |
662 'target_conditions': [ | 669 'target_conditions': [ |
663 ['_type!="static_library"', { | 670 ['_type!="static_library"', { |
664 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']}, | 671 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']}, |
665 }], | 672 }], |
666 ], # target_conditions | 673 ], # target_conditions |
667 }, # target_defaults | 674 }, # target_defaults |
668 }], # OS=="mac" | 675 }], # OS=="mac" |
669 ['clang!=1 and host_clang==1 and target_arch!="ia32" and target_arch!="x64"'
, { | 676 ['clang!=1 and host_clang==1 and target_arch!="ia32" and target_arch!="x64"'
, { |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
721 ['use_goma==1 and ("<(GENERATOR)"=="ninja" or clang==1)', { | 728 ['use_goma==1 and ("<(GENERATOR)"=="ninja" or clang==1)', { |
722 'make_global_settings': [ | 729 'make_global_settings': [ |
723 ['CC_wrapper', '<(gomadir)/gomacc'], | 730 ['CC_wrapper', '<(gomadir)/gomacc'], |
724 ['CXX_wrapper', '<(gomadir)/gomacc'], | 731 ['CXX_wrapper', '<(gomadir)/gomacc'], |
725 ['CC.host_wrapper', '<(gomadir)/gomacc'], | 732 ['CC.host_wrapper', '<(gomadir)/gomacc'], |
726 ['CXX.host_wrapper', '<(gomadir)/gomacc'], | 733 ['CXX.host_wrapper', '<(gomadir)/gomacc'], |
727 ], | 734 ], |
728 }], | 735 }], |
729 ], | 736 ], |
730 } | 737 } |
OLD | NEW |