Revision f230a1cf deps/v8/build/toolchain.gypi

View differences:

deps/v8/build/toolchain.gypi
60 60

  
61 61
    'v8_enable_backtrace%': 0,
62 62

  
63
    # Speeds up Debug builds:
64
    # 0 - Compiler optimizations off (debuggable) (default). This may
65
    #     be 5x slower than Release (or worse).
66
    # 1 - Turn on compiler optimizations. This may be hard or impossible to
67
    #     debug. This may still be 2x slower than Release (or worse).
68
    # 2 - Turn on optimizations, and also #undef DEBUG / #define NDEBUG
69
    #     (but leave V8_ENABLE_CHECKS and most other assertions enabled.
70
    #     This may cause some v8 tests to fail in the Debug configuration.
71
    #     This roughly matches the performance of a Release build and can
72
    #     be used by embedders that need to build their own code as debug
73
    #     but don't want or need a debug version of V8. This should produce
74
    #     near-release speeds.
75
    'v8_optimized_debug%': 0,
76

  
77 63
    # Enable profiling support. Only required on Windows.
78 64
    'v8_enable_prof%': 0,
79 65

  
......
450 436
          'V8_ENABLE_CHECKS',
451 437
          'OBJECT_PRINT',
452 438
          'VERIFY_HEAP',
439
          'DEBUG'
453 440
        ],
454 441
        'msvs_settings': {
455 442
          'VCCLCompilerTool': {
......
517 504
          },
518 505
        },
519 506
        'conditions': [
520
          ['v8_optimized_debug==2', {
521
            'defines': [
522
              'NDEBUG',
523
            ],
524
          }, {
525
            'defines': [
526
              'DEBUG',
527
            ],
528
          }],
529 507
          ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="netbsd"', {
530 508
            'cflags': [ '-Wall', '<(werror)', '-W', '-Wno-unused-parameter',
531 509
                        '-Wnon-virtual-dtor', '-Woverloaded-virtual',
......
567 545
                  '-fdata-sections',
568 546
                  '-ffunction-sections',
569 547
                ],
548
                'defines': [
549
                  'OPTIMIZED_DEBUG'
550
                ],
570 551
                'conditions': [
571 552
                  # TODO(crbug.com/272548): Avoid -O3 in NaCl
572 553
                  ['nacl_target_arch=="none"', {

Also available in: Unified diff