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

Side by Side Diff: build/common.gypi

Issue 13811009: Fix build warnings with gcc4.8 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: use conditions to set flag only for gcc>=4.8 Created 7 years, 8 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
« 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 (c) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 # IMPORTANT: 5 # IMPORTANT:
6 # Please don't directly include this file if you are building via gyp_chromium, 6 # Please don't directly include this file if you are building via gyp_chromium,
7 # since gyp_chromium is automatically forcing its inclusion. 7 # since gyp_chromium is automatically forcing its inclusion.
8 { 8 {
9 # Variables expected to be overriden on the GYP command line (-D) or by 9 # Variables expected to be overriden on the GYP command line (-D) or by
10 # ~/.gyp/include.gypi. 10 # ~/.gyp/include.gypi.
(...skipping 2540 matching lines...) Expand 10 before | Expand all | Expand 10 after
2551 # '-Wextra', 2551 # '-Wextra',
2552 # Don't warn about unused function params. We use those everywhere. 2552 # Don't warn about unused function params. We use those everywhere.
2553 '-Wno-unused-parameter', 2553 '-Wno-unused-parameter',
2554 # Don't warn about the "struct foo f = {0};" initialization pattern. 2554 # Don't warn about the "struct foo f = {0};" initialization pattern.
2555 '-Wno-missing-field-initializers', 2555 '-Wno-missing-field-initializers',
2556 # Don't export any symbols (for example, to plugins we dlopen()). 2556 # Don't export any symbols (for example, to plugins we dlopen()).
2557 # Note: this is *required* to make some plugins work. 2557 # Note: this is *required* to make some plugins work.
2558 '-fvisibility=hidden', 2558 '-fvisibility=hidden',
2559 '-pipe', 2559 '-pipe',
2560 ], 2560 ],
2561 'conditions': [
qiankun 2013/04/13 01:21:30 Add a conditions section to check if gcc_version>=
Raphael Kubo da Costa (rakuco) 2013/04/15 10:57:07 Have you tried running `gyp_chromium' with the CHR
2562 # Don't warn about the "typedef 'foo' locally defined but not used"
2563 # for gcc 4.8.
2564 # TODO: remove this flag once all builds work. See crbug.com/227506
2565 [ 'gcc_version>=48', {
2566 'cflags': [
2567 '-Wno-unused-local-typedefs',
2568 ],
2569 }],
2570 ],
2561 'cflags_cc': [ 2571 'cflags_cc': [
2562 '-fno-rtti', 2572 '-fno-rtti',
2563 '-fno-threadsafe-statics', 2573 '-fno-threadsafe-statics',
2564 # Make inline functions have hidden visiblity by default. 2574 # Make inline functions have hidden visiblity by default.
2565 # Surprisingly, not covered by -fvisibility=hidden. 2575 # Surprisingly, not covered by -fvisibility=hidden.
2566 '-fvisibility-inlines-hidden', 2576 '-fvisibility-inlines-hidden',
2567 # GCC turns on -Wsign-compare for C++ under -Wall, but clang doesn't, 2577 # GCC turns on -Wsign-compare for C++ under -Wall, but clang doesn't,
2568 # so we specify it explicitly. 2578 # so we specify it explicitly.
2569 # TODO(fischman): remove this if http://llvm.org/PR10448 obsoletes it. 2579 # TODO(fischman): remove this if http://llvm.org/PR10448 obsoletes it.
2570 # http://code.google.com/p/chromium/issues/detail?id=90453 2580 # http://code.google.com/p/chromium/issues/detail?id=90453
(...skipping 1651 matching lines...) Expand 10 before | Expand all | Expand 10 after
4222 # settings in target dicts. SYMROOT is a special case, because many other 4232 # settings in target dicts. SYMROOT is a special case, because many other
4223 # Xcode variables depend on it, including variables such as 4233 # Xcode variables depend on it, including variables such as
4224 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something 4234 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something
4225 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the 4235 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the
4226 # files to appear (when present) in the UI as actual files and not red 4236 # files to appear (when present) in the UI as actual files and not red
4227 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, 4237 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR,
4228 # and therefore SYMROOT, needs to be set at the project level. 4238 # and therefore SYMROOT, needs to be set at the project level.
4229 'SYMROOT': '<(DEPTH)/xcodebuild', 4239 'SYMROOT': '<(DEPTH)/xcodebuild',
4230 }, 4240 },
4231 } 4241 }
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