| OLD | NEW |
| 1 # Copyright 2013 the V8 project authors. All rights reserved. | 1 # Copyright 2013 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 553 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 564 'cflags': [ | 564 'cflags': [ |
| 565 '-fdata-sections', | 565 '-fdata-sections', |
| 566 '-ffunction-sections', | 566 '-ffunction-sections', |
| 567 '-O1', # TODO(2807) should be -O3. | 567 '-O1', # TODO(2807) should be -O3. |
| 568 ], | 568 ], |
| 569 }], | 569 }], |
| 570 ['v8_optimized_debug==2', { | 570 ['v8_optimized_debug==2', { |
| 571 'cflags!': [ | 571 'cflags!': [ |
| 572 '-O0', | 572 '-O0', |
| 573 '-O1', | 573 '-O1', |
| 574 '-O2', | |
| 575 '-Os', | 574 '-Os', |
| 576 ], | 575 ], |
| 577 'cflags': [ | 576 'cflags': [ |
| 578 '-fdata-sections', | 577 '-fdata-sections', |
| 579 '-ffunction-sections', | 578 '-ffunction-sections', |
| 580 '-O3', | 579 ], |
| 580 'conditions': [ |
| 581 # TODO(crbug.com/272548): Avoid -O3 in NaCl |
| 582 ['nacl_target_arch=="none"', { |
| 583 'cflags': ['-O3'], |
| 584 'cflags!': ['-O2'], |
| 585 }, { |
| 586 'cflags': ['-O2'], |
| 587 'cflags!': ['-O3'], |
| 588 }], |
| 581 ], | 589 ], |
| 582 }], | 590 }], |
| 583 ['v8_optimized_debug!=0 and gcc_version==44 and clang==0', { | 591 ['v8_optimized_debug!=0 and gcc_version==44 and clang==0', { |
| 584 'cflags': [ | 592 'cflags': [ |
| 585 # Avoid crashes with gcc 4.4 in the v8 test suite. | 593 # Avoid crashes with gcc 4.4 in the v8 test suite. |
| 586 '-fno-tree-vrp', | 594 '-fno-tree-vrp', |
| 587 ], | 595 ], |
| 588 }], | 596 }], |
| 589 ], | 597 ], |
| 590 }], | 598 }], |
| (...skipping 26 matching lines...) Expand all Loading... |
| 617 }], | 625 }], |
| 618 ], | 626 ], |
| 619 }, | 627 }, |
| 620 }], | 628 }], |
| 621 ], | 629 ], |
| 622 }, # Debug | 630 }, # Debug |
| 623 'Release': { | 631 'Release': { |
| 624 'conditions': [ | 632 'conditions': [ |
| 625 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="netbsd"', { | 633 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="netbsd"', { |
| 626 'cflags!': [ | 634 'cflags!': [ |
| 627 '-O2', | |
| 628 '-Os', | 635 '-Os', |
| 629 ], | 636 ], |
| 630 'cflags': [ | 637 'cflags': [ |
| 631 '-fdata-sections', | 638 '-fdata-sections', |
| 632 '-ffunction-sections', | 639 '-ffunction-sections', |
| 633 '-O3', | |
| 634 '<(wno_array_bounds)', | 640 '<(wno_array_bounds)', |
| 635 # Hide some GCC 4.8 warnings: | 641 # Hide some GCC 4.8 warnings: |
| 636 # TODO(jbramley): Only enable these on GCC 4.8. | 642 # TODO(jbramley): Only enable these on GCC 4.8. |
| 637 '-Wno-unused-local-typedefs', | 643 '-Wno-unused-local-typedefs', |
| 638 '-Wno-maybe-uninitialized', | 644 '-Wno-maybe-uninitialized', |
| 639 ], | 645 ], |
| 640 'conditions': [ | 646 'conditions': [ |
| 641 [ 'gcc_version==44 and clang==0', { | 647 [ 'gcc_version==44 and clang==0', { |
| 642 'cflags': [ | 648 'cflags': [ |
| 643 # Avoid crashes with gcc 4.4 in the v8 test suite. | 649 # Avoid crashes with gcc 4.4 in the v8 test suite. |
| 644 '-fno-tree-vrp', | 650 '-fno-tree-vrp', |
| 645 ], | 651 ], |
| 646 }], | 652 }], |
| 653 # TODO(crbug.com/272548): Avoid -O3 in NaCl |
| 654 ['nacl_target_arch=="none"', { |
| 655 'cflags': ['-O3'], |
| 656 'cflags!': ['-O2'], |
| 657 }, { |
| 658 'cflags': ['-O2'], |
| 659 'cflags!': ['-O3'], |
| 660 }], |
| 647 ], | 661 ], |
| 648 }], | 662 }], |
| 649 ['OS=="android"', { | 663 ['OS=="android"', { |
| 650 'cflags!': [ | 664 'cflags!': [ |
| 651 '-O3', | 665 '-O3', |
| 652 '-Os', | 666 '-Os', |
| 653 ], | 667 ], |
| 654 'cflags': [ | 668 'cflags': [ |
| 655 '-fdata-sections', | 669 '-fdata-sections', |
| 656 '-ffunction-sections', | 670 '-ffunction-sections', |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 701 'OptimizeReferences': '2', | 715 'OptimizeReferences': '2', |
| 702 'EnableCOMDATFolding': '2', | 716 'EnableCOMDATFolding': '2', |
| 703 }, | 717 }, |
| 704 }, | 718 }, |
| 705 }], # OS=="win" | 719 }], # OS=="win" |
| 706 ], # conditions | 720 ], # conditions |
| 707 }, # Release | 721 }, # Release |
| 708 }, # configurations | 722 }, # configurations |
| 709 }, # target_defaults | 723 }, # target_defaults |
| 710 } | 724 } |
| OLD | NEW |