| 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 if (current_cpu == "arm") { | 7 if (current_cpu == "arm") { |
| 8 import("//build/config/arm.gni") | 8 import("//build/config/arm.gni") |
| 9 } | 9 } |
| 10 if (current_cpu == "mipsel" || current_cpu == "mips64el") { | 10 if (current_cpu == "mipsel" || current_cpu == "mips64el") { |
| (...skipping 896 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 907 | 907 |
| 908 if (is_clang) { | 908 if (is_clang) { |
| 909 cflags += [ | 909 cflags += [ |
| 910 # TODO(hans): Get this cleaned up. | 910 # TODO(hans): Get this cleaned up. |
| 911 "-Wno-inconsistent-missing-override", | 911 "-Wno-inconsistent-missing-override", |
| 912 ] | 912 ] |
| 913 } | 913 } |
| 914 | 914 |
| 915 cflags += default_warning_flags | 915 cflags += default_warning_flags |
| 916 cflags_cc += default_warning_flags_cc | 916 cflags_cc += default_warning_flags_cc |
| 917 |
| 918 if (is_clang) { |
| 919 cflags += [ |
| 920 # TODO(dalesat): Remove once not broken by third party (ffmpeg). |
| 921 # See https://github.com/domokit/mojo/issues/692. |
| 922 "-Wno-constant-conversion", |
| 923 ] |
| 924 } |
| 917 } | 925 } |
| 918 | 926 |
| 919 # rtti ------------------------------------------------------------------------ | 927 # rtti ------------------------------------------------------------------------ |
| 920 # | 928 # |
| 921 # Allows turning Run-Time Type Identification on or off. | 929 # Allows turning Run-Time Type Identification on or off. |
| 922 | 930 |
| 923 config("rtti") { | 931 config("rtti") { |
| 924 } | 932 } |
| 925 config("no_rtti") { | 933 config("no_rtti") { |
| 926 cflags_cc = [ "-fno-rtti" ] | 934 cflags_cc = [ "-fno-rtti" ] |
| (...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1110 if (symbol_level == 0) { | 1118 if (symbol_level == 0) { |
| 1111 configs = [ ":no_symbols" ] | 1119 configs = [ ":no_symbols" ] |
| 1112 } else if (symbol_level == 1) { | 1120 } else if (symbol_level == 1) { |
| 1113 configs = [ ":minimal_symbols" ] | 1121 configs = [ ":minimal_symbols" ] |
| 1114 } else if (symbol_level == 2) { | 1122 } else if (symbol_level == 2) { |
| 1115 configs = [ ":symbols" ] | 1123 configs = [ ":symbols" ] |
| 1116 } else { | 1124 } else { |
| 1117 assert(false) | 1125 assert(false) |
| 1118 } | 1126 } |
| 1119 } | 1127 } |
| OLD | NEW |