| 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/chromecast_build.gni") | 7 import("//build/config/chromecast_build.gni") |
| 8 import("//build/config/compiler/compiler.gni") | 8 import("//build/config/compiler/compiler.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 1000 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1011 | 1011 |
| 1012 # Building with Clang on Windows is a work in progress and very | 1012 # Building with Clang on Windows is a work in progress and very |
| 1013 # experimental. See crbug.com/82385. | 1013 # experimental. See crbug.com/82385. |
| 1014 if (is_clang) { | 1014 if (is_clang) { |
| 1015 cflags += [ | 1015 cflags += [ |
| 1016 # TODO(hans): Make this list shorter eventually, http://crbug.com/504657 | 1016 # TODO(hans): Make this list shorter eventually, http://crbug.com/504657 |
| 1017 "-Wno-microsoft-enum-value", # http://crbug.com/505296 | 1017 "-Wno-microsoft-enum-value", # http://crbug.com/505296 |
| 1018 "-Wno-unknown-pragmas", # http://crbug.com/505314 | 1018 "-Wno-unknown-pragmas", # http://crbug.com/505314 |
| 1019 "-Wno-microsoft-cast", # http://crbug.com/550065 | 1019 "-Wno-microsoft-cast", # http://crbug.com/550065 |
| 1020 ] | 1020 ] |
| 1021 if (llvm_force_head_revision) { |
| 1022 cflags += [ "-Wno-microsoft-enum-forward-reference" ] # http://crbug.co
m/718880 |
| 1023 } |
| 1021 } | 1024 } |
| 1022 } else { | 1025 } else { |
| 1023 if (is_mac && !is_nacl) { | 1026 if (is_mac && !is_nacl) { |
| 1024 # When compiling Objective-C, warns if a method is used whose | 1027 # When compiling Objective-C, warns if a method is used whose |
| 1025 # availability is newer than the deployment target. This is not | 1028 # availability is newer than the deployment target. This is not |
| 1026 # required when compiling Chrome for iOS. | 1029 # required when compiling Chrome for iOS. |
| 1027 cflags += [ "-Wpartial-availability" ] | 1030 cflags += [ "-Wpartial-availability" ] |
| 1028 } | 1031 } |
| 1029 | 1032 |
| 1030 if (is_ios) { | 1033 if (is_ios) { |
| (...skipping 721 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1752 | 1755 |
| 1753 if (is_ios || is_mac) { | 1756 if (is_ios || is_mac) { |
| 1754 # On Mac and iOS, this enables support for ARC (automatic ref-counting). | 1757 # On Mac and iOS, this enables support for ARC (automatic ref-counting). |
| 1755 # See http://clang.llvm.org/docs/AutomaticReferenceCounting.html. | 1758 # See http://clang.llvm.org/docs/AutomaticReferenceCounting.html. |
| 1756 config("enable_arc") { | 1759 config("enable_arc") { |
| 1757 common_flags = [ "-fobjc-arc" ] | 1760 common_flags = [ "-fobjc-arc" ] |
| 1758 cflags_objc = common_flags | 1761 cflags_objc = common_flags |
| 1759 cflags_objcc = common_flags | 1762 cflags_objcc = common_flags |
| 1760 } | 1763 } |
| 1761 } | 1764 } |
| OLD | NEW |