diff --git a/gyp_packager.py b/gyp_packager.py index 6f0d11b858..9145ad40de 100755 --- a/gyp_packager.py +++ b/gyp_packager.py @@ -66,8 +66,10 @@ if __name__ == '__main__': # Set these default GYP_DEFINES if user does not set the value explicitly. _DEFAULT_DEFINES = {'test_isolation_mode': 'noop', + 'use_custom_libcxx': 0, 'use_glib': 0, 'use_openssl': 1, + 'use_sysroot': 0, 'use_x11': 0, 'linux_use_bundled_binutils': 0, 'linux_use_bundled_gold': 0, @@ -78,9 +80,6 @@ if __name__ == '__main__': for key, value in _DEFAULT_DEFINES.items(): if key not in gyp_defines: gyp_defines += ' {0}={1}'.format(key, value) - # Somehow gcc don't like use_sysroot. - if 'clang=0' in gyp_defines and 'use_sysroot' not in gyp_defines: - gyp_defines += ' use_sysroot=0' os.environ['GYP_DEFINES'] = gyp_defines.strip() # Default to ninja, but only if no generator has explicitly been set. diff --git a/packager/common.gypi b/packager/common.gypi index 256368be72..07181e51ea 100644 --- a/packager/common.gypi +++ b/packager/common.gypi @@ -68,6 +68,10 @@ # the code in CJK environment if there is non-ASCII characters # in the file. ], + 'cflags': [ + # TODO(modmaker): Remove once Chromium base is removed. + '-Wno-deprecated-declarations', + ], 'conditions': [ ['clang==0', { 'cflags': [