old_contents: {
    'targets': [
      {
        'target_name': 'git2',
        'variables': {
          'git2-arch-flag': '',
          'git2-link-flag': ''
        },
        'conditions': [
          ['target_arch=="ia32"', {
            'variables': {
              'git2-arch-flag': '-m32'
            }
          }],
          ['OS=="linux"', {
            'variables': {
              'git2-link-flag': '-fPIC'
            }
          }]
        ],
        'actions': [
          {
            'action_name': 'Build libgit2',
            'inputs': ['deps/libgit2'],
            'outputs': ['deps/libgit2/builds/libgit2.a'],
            'action': [
              'sh',
              'build-libgit2.sh',
              '<(git2-arch-flag) <(git2-link-flag)'
            ]
          }
        ]
      },
      {
        'target_name': 'git',
        'dependencies': [
          'git2'
        ],
        'sources': [
          'src/repository.cc'
        ],
        'libraries': [
          '../deps/libgit2/build/libgit2.a'
        ],
        'include_dirs': [
          'deps/libgit2/include'
        ]
      }
    ]
  }
  
new_contents: {
    'targets': [
      {
        'target_name': 'git2',
        'variables': {
          'git2-arch-flag': '',
          'git2-link-flag': ''
        },
        'conditions': [
          ['target_arch=="ia32"', {
            'variables': {
              'git2-arch-flag': '-m32'
            }
          }],
          ['OS=="linux"', {
            'variables': {
              'git2-link-flag': '-fPIC'
            }
          }]
        ],
        'actions': [
          {
            'action_name': 'Build libgit2',
            'inputs': ['deps/libgit2'],
            'outputs': ['deps/libgit2/builds/libgit2.a'],
            'action': [
              'sh',
              'build-libgit2.sh',
              '<(git2-arch-flag) <(git2-link-flag)'
            ]
          }
        ]
      },
      {
        'target_name': 'git',
        'dependencies': [
          'git2'
        ],
        'sources': [
          'src/repository.cc'
        ],
        'libraries': [
          '../deps/libgit2/build/libgit2.a'
        ],
        'include_dirs': [
          'deps/libgit2/include'
        ],
        'conditions': [
          ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris"', {
            'cflags': [ '-Wno-missing-field-initializers' ]
          }],
          ['OS=="mac"', {
            'xcode_settings': {
              'WARNING_CFLAGS+': [
                '-Wno-missing-field-initializers'
              ]
            }
          }]
        ]
      }
    ]
  }
  
subject: Add -Wno-missing-field-initializers GCC flag