Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(170)

Side by Side Diff: build/common.gypi

Issue 18516012: Enable debug builds with some optimizations turned on. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Added new debug build option to win and mac build. Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 472 matching lines...) Expand 10 before | Expand all | Expand 10 after
483 'cflags': [ '-I/usr/local/include' ], 483 'cflags': [ '-I/usr/local/include' ],
484 }], 484 }],
485 ['OS=="netbsd"', { 485 ['OS=="netbsd"', {
486 'cflags': [ '-I/usr/pkg/include' ], 486 'cflags': [ '-I/usr/pkg/include' ],
487 }], 487 }],
488 ], # conditions 488 ], # conditions
489 'configurations': { 489 'configurations': {
490 'Debug': { 490 'Debug': {
491 'variables': { 491 'variables': {
492 'v8_enable_extra_checks%': 1, 492 'v8_enable_extra_checks%': 1,
493 'v8_full_debug%': 1,
493 }, 494 },
494 'defines': [ 495 'defines': [
495 'DEBUG', 496 'DEBUG',
496 'ENABLE_DISASSEMBLER', 497 'ENABLE_DISASSEMBLER',
497 'V8_ENABLE_CHECKS', 498 'V8_ENABLE_CHECKS',
498 'OBJECT_PRINT', 499 'OBJECT_PRINT',
499 'VERIFY_HEAP', 500 'VERIFY_HEAP',
500 ], 501 ],
501 'msvs_settings': {
502 'VCCLCompilerTool': {
503 'Optimization': '0',
504
505 'conditions': [
506 ['OS=="win" and component=="shared_library"', {
507 'RuntimeLibrary': '3', # /MDd
508 }, {
509 'RuntimeLibrary': '1', # /MTd
510 }],
511 ],
512 },
513 'VCLinkerTool': {
514 'LinkIncremental': '2',
515 },
516 },
517 'conditions': [ 502 'conditions': [
518 ['v8_enable_extra_checks==1', { 503 ['v8_enable_extra_checks==1', {
519 'defines': ['ENABLE_EXTRA_CHECKS',], 504 'defines': ['ENABLE_EXTRA_CHECKS',],
520 }], 505 }],
506 ['OS=="win"', {
507 'msvs_settings': {
Jakob Kummerow 2013/07/09 16:47:07 Keeping the msvs_settings section where it was sav
508 'VCCLCompilerTool': {
509 'conditions': [
510 ['component=="shared_library"', {
511 'RuntimeLibrary': '3', # /MDd
512 }, {
513 'RuntimeLibrary': '1', # /MTd
514 }],
515 ['v8_full_debug==0', {
516 'Optimization': '1',
517 }, {
518 'Optimization': '0',
519 }]
Jakob Kummerow 2013/07/09 16:47:07 nit: trailing comma (not necessary for correctness
520 ],
521 },
522 'VCLinkerTool': {
523 'LinkIncremental': '2',
524 },
525 },
526 }], # OS=="win"
521 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="netbsd"', { 527 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="netbsd"', {
522 'cflags': [ '-Wall', '<(werror)', '-W', '-Wno-unused-parameter', 528 'cflags': [ '-Wall', '<(werror)', '-W', '-Wno-unused-parameter',
523 '-Wnon-virtual-dtor', '-Woverloaded-virtual' ], 529 '-Wnon-virtual-dtor', '-Woverloaded-virtual' ],
530 'conditions': [
531 ['v8_full_debug==0', {
532 'cflags': [ '-O1' ],
533 }]
Jakob Kummerow 2013/07/09 16:47:07 nit: trailing comma
534 ],
524 }], 535 }],
525 ['OS=="linux" and v8_enable_backtrace==1', { 536 ['OS=="linux" and v8_enable_backtrace==1', {
526 # Support for backtrace_symbols. 537 # Support for backtrace_symbols.
527 'ldflags': [ '-rdynamic' ], 538 'ldflags': [ '-rdynamic' ],
528 }], 539 }],
529 ['OS=="android"', { 540 ['OS=="android"', {
530 'variables': { 541 'variables': {
531 'android_full_debug%': 1, 542 'android_full_debug%': 1,
532 }, 543 },
533 'conditions': [ 544 'conditions': [
534 ['android_full_debug==0', { 545 ['android_full_debug==0', {
535 # Disable full debug if we want a faster v8 in a debug build. 546 # Disable full debug if we want a faster v8 in a debug build.
536 # TODO(2304): pass DISABLE_DEBUG_ASSERT instead of hiding DEBUG. 547 # TODO(2304): pass DISABLE_DEBUG_ASSERT instead of hiding DEBUG.
537 'defines!': [ 548 'defines!': [
538 'DEBUG', 549 'DEBUG',
539 ], 550 ],
540 }], 551 }],
541 ], 552 ],
542 }], 553 }],
543 ['OS=="mac"', { 554 ['OS=="mac"', {
544 'xcode_settings': { 555 'xcode_settings': {
545 'GCC_OPTIMIZATION_LEVEL': '0', # -O0 556 'conditions': [
557 ['v8_full_debug==0', {
558 'GCC_OPTIMIZATION_LEVEL': '1', # -O1
559 }, {
560 'GCC_OPTIMIZATION_LEVEL': '0', # -O0
561 }]
Jakob Kummerow 2013/07/09 16:47:07 nit: trailing comma
562 ],
546 }, 563 },
547 }], 564 }],
548 ], 565 ],
549 }, # Debug 566 }, # Debug
550 'Release': { 567 'Release': {
551 'variables': { 568 'variables': {
552 'v8_enable_extra_checks%': 0, 569 'v8_enable_extra_checks%': 0,
553 }, 570 },
554 'conditions': [ 571 'conditions': [
555 ['v8_enable_extra_checks==1', { 572 ['v8_enable_extra_checks==1', {
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
606 }], # OS=="mac" 623 }], # OS=="mac"
607 ['OS=="win"', { 624 ['OS=="win"', {
608 'msvs_settings': { 625 'msvs_settings': {
609 'VCCLCompilerTool': { 626 'VCCLCompilerTool': {
610 'Optimization': '2', 627 'Optimization': '2',
611 'InlineFunctionExpansion': '2', 628 'InlineFunctionExpansion': '2',
612 'EnableIntrinsicFunctions': 'true', 629 'EnableIntrinsicFunctions': 'true',
613 'FavorSizeOrSpeed': '0', 630 'FavorSizeOrSpeed': '0',
614 'StringPooling': 'true', 631 'StringPooling': 'true',
615 'conditions': [ 632 'conditions': [
616 ['OS=="win" and component=="shared_library"', { 633 ['component=="shared_library"', {
617 'RuntimeLibrary': '2', #/MD 634 'RuntimeLibrary': '2', #/MD
618 }, { 635 }, {
619 'RuntimeLibrary': '0', #/MT 636 'RuntimeLibrary': '0', #/MT
620 }], 637 }],
621 ['v8_target_arch=="x64"', { 638 ['v8_target_arch=="x64"', {
622 # TODO(2207): remove this option once the bug is fixed. 639 # TODO(2207): remove this option once the bug is fixed.
623 'WholeProgramOptimization': 'true', 640 'WholeProgramOptimization': 'true',
624 }], 641 }],
625 ], 642 ],
626 }, 643 },
627 'VCLinkerTool': { 644 'VCLinkerTool': {
628 'LinkIncremental': '1', 645 'LinkIncremental': '1',
629 'OptimizeReferences': '2', 646 'OptimizeReferences': '2',
630 'EnableCOMDATFolding': '2', 647 'EnableCOMDATFolding': '2',
631 }, 648 },
632 }, 649 },
633 }], # OS=="win" 650 }], # OS=="win"
634 ], # conditions 651 ], # conditions
635 }, # Release 652 }, # Release
636 }, # configurations 653 }, # configurations
637 }, # target_defaults 654 }, # target_defaults
638 } 655 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698