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

Side by Side Diff: build/common.gypi

Issue 7606012: Pass clang flags to the host compiler, too. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 4 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 (c) 2011 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2011 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 1483 matching lines...) Expand 10 before | Expand all | Expand 10 after
1494 ['_toolset=="target"', { 1494 ['_toolset=="target"', {
1495 'cflags': [ 1495 'cflags': [
1496 '--sysroot=<(sysroot)', 1496 '--sysroot=<(sysroot)',
1497 ], 1497 ],
1498 'ldflags': [ 1498 'ldflags': [
1499 '--sysroot=<(sysroot)', 1499 '--sysroot=<(sysroot)',
1500 ], 1500 ],
1501 }]] 1501 }]]
1502 }], 1502 }],
1503 ['clang==1', { 1503 ['clang==1', {
1504 'target_conditions': [ 1504 'cflags': [
1505 ['_toolset=="target"', { 1505 '-Wheader-hygiene',
1506 'cflags': [ 1506 # Clang spots more unused functions.
1507 '-Wheader-hygiene', 1507 '-Wno-unused-function',
1508 # Clang spots more unused functions. 1508 # Don't die on dtoa code that uses a char as an array index.
1509 '-Wno-unused-function', 1509 '-Wno-char-subscripts',
1510 # Don't die on dtoa code that uses a char as an array index. 1510 # Survive EXPECT_EQ(unnamed_enum, unsigned int) -- see
1511 '-Wno-char-subscripts', 1511 # http://code.google.com/p/googletest/source/detail?r=446 .
1512 # Survive EXPECT_EQ(unnamed_enum, unsigned int) -- see 1512 # TODO(thakis): Use -isystem instead (http://crbug.com/58751 )
1513 # http://code.google.com/p/googletest/source/detail?r=446 . 1513 '-Wno-unnamed-type-template-args',
1514 # TODO(thakis): Use -isystem instead (http://crbug.com/58751 ) 1514 ],
1515 '-Wno-unnamed-type-template-args', 1515 'cflags!': [
1516 ], 1516 # Clang doesn't seem to know know this flag.
1517 'cflags!': [ 1517 '-mfpmath=sse',
1518 # Clang doesn't seem to know know this flag. 1518 ],
1519 '-mfpmath=sse',
1520 ],
1521 }]],
1522 }], 1519 }],
1523 ['clang==1 and clang_use_chrome_plugins==1', { 1520 ['clang==1 and clang_use_chrome_plugins==1', {
1524 'target_conditions': [ 1521 'target_conditions': [
1525 ['_toolset=="target"', { 1522 ['_toolset=="target"', {
1526 'cflags': [ 1523 'cflags': [
1527 '<(clang_chrome_plugins_flags)', 1524 '<(clang_chrome_plugins_flags)',
1528 ], 1525 ],
1529 }]], 1526 }]],
1530 }], 1527 }],
1531 ['clang==1 and clang_load!="" and clang_add_plugin!=""', { 1528 ['clang==1 and clang_load!="" and clang_add_plugin!=""', {
(...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after
1934 # settings in target dicts. SYMROOT is a special case, because many other 1931 # settings in target dicts. SYMROOT is a special case, because many other
1935 # Xcode variables depend on it, including variables such as 1932 # Xcode variables depend on it, including variables such as
1936 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something 1933 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something
1937 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the 1934 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the
1938 # files to appear (when present) in the UI as actual files and not red 1935 # files to appear (when present) in the UI as actual files and not red
1939 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, 1936 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR,
1940 # and therefore SYMROOT, needs to be set at the project level. 1937 # and therefore SYMROOT, needs to be set at the project level.
1941 'SYMROOT': '<(DEPTH)/xcodebuild', 1938 'SYMROOT': '<(DEPTH)/xcodebuild',
1942 }, 1939 },
1943 } 1940 }
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