| OLD | NEW |
| 1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2013 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 import("//build/config/android/config.gni") | 5 import("//build/config/android/config.gni") |
| 6 import("//build/config/chrome_build.gni") | 6 import("//build/config/chrome_build.gni") |
| 7 import("//build/config/compiler/compiler.gni") | 7 import("//build/config/compiler/compiler.gni") |
| 8 import("//build/config/nacl/config.gni") | 8 import("//build/config/nacl/config.gni") |
| 9 import("//build/toolchain/cc_wrapper.gni") | 9 import("//build/toolchain/cc_wrapper.gni") |
| 10 import("//build/toolchain/toolchain.gni") | 10 import("//build/toolchain/toolchain.gni") |
| (...skipping 919 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 930 | 930 |
| 931 # Building with Clang on Windows is a work in progress and very | 931 # Building with Clang on Windows is a work in progress and very |
| 932 # experimental. See crbug.com/82385. | 932 # experimental. See crbug.com/82385. |
| 933 # Keep this in sync with the similar block in build/common.gypi | 933 # Keep this in sync with the similar block in build/common.gypi |
| 934 if (is_clang) { | 934 if (is_clang) { |
| 935 cflags += [ | 935 cflags += [ |
| 936 # TODO(hans): Make this list shorter eventually, http://crbug.com/504657 | 936 # TODO(hans): Make this list shorter eventually, http://crbug.com/504657 |
| 937 "-Wno-microsoft-enum-value", # http://crbug.com/505296 | 937 "-Wno-microsoft-enum-value", # http://crbug.com/505296 |
| 938 "-Wno-unknown-pragmas", # http://crbug.com/505314 | 938 "-Wno-unknown-pragmas", # http://crbug.com/505314 |
| 939 "-Wno-microsoft-cast", # http://crbug.com/550065 | 939 "-Wno-microsoft-cast", # http://crbug.com/550065 |
| 940 "-Wno-ignored-pragmas", # http://crbug.com/644841 |
| 940 ] | 941 ] |
| 941 } | 942 } |
| 942 } else { | 943 } else { |
| 943 if (is_mac && !is_nacl) { | 944 if (is_mac && !is_nacl) { |
| 944 # When compiling Objective-C, warns if a method is used whose | 945 # When compiling Objective-C, warns if a method is used whose |
| 945 # availability is newer than the deployment target. This is not | 946 # availability is newer than the deployment target. This is not |
| 946 # required when compiling Chrome for iOS. | 947 # required when compiling Chrome for iOS. |
| 947 cflags += [ "-Wpartial-availability" ] | 948 cflags += [ "-Wpartial-availability" ] |
| 948 } | 949 } |
| 949 | 950 |
| (...skipping 650 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1600 | 1601 |
| 1601 if (is_ios || is_mac) { | 1602 if (is_ios || is_mac) { |
| 1602 # On Mac and iOS, this enables support for ARC (automatic ref-counting). | 1603 # On Mac and iOS, this enables support for ARC (automatic ref-counting). |
| 1603 # See http://clang.llvm.org/docs/AutomaticReferenceCounting.html. | 1604 # See http://clang.llvm.org/docs/AutomaticReferenceCounting.html. |
| 1604 config("enable_arc") { | 1605 config("enable_arc") { |
| 1605 common_flags = [ "-fobjc-arc" ] | 1606 common_flags = [ "-fobjc-arc" ] |
| 1606 cflags_objc = common_flags | 1607 cflags_objc = common_flags |
| 1607 cflags_objcc = common_flags | 1608 cflags_objcc = common_flags |
| 1608 } | 1609 } |
| 1609 } | 1610 } |
| OLD | NEW |