| 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 if (cpu_arch == "arm") { | 6 if (cpu_arch == "arm") { |
| 7 import("//build/config/arm.gni") | 7 import("//build/config/arm.gni") |
| 8 } | 8 } |
| 9 if (is_posix) { | 9 if (is_posix) { |
| 10 import("//build/config/gcc/gcc_version.gni") | 10 import("//build/config/gcc/gcc_version.gni") |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 # source root and might have conflicting versions of some headers) can remove | 39 # source root and might have conflicting versions of some headers) can remove |
| 40 # this and specify their own include paths. | 40 # this and specify their own include paths. |
| 41 config("default_include_dirs") { | 41 config("default_include_dirs") { |
| 42 include_dirs = [ | 42 include_dirs = [ |
| 43 "//", | 43 "//", |
| 44 root_gen_dir, | 44 root_gen_dir, |
| 45 ] | 45 ] |
| 46 } | 46 } |
| 47 | 47 |
| 48 # TODO(GYP): is_ubsan, is_ubsan_vptr | 48 # TODO(GYP): is_ubsan, is_ubsan_vptr |
| 49 using_sanitizer = is_asan || is_lsan || is_tsan || is_msan | 49 if (!is_win) { |
| 50 using_sanitizer = is_asan || is_lsan || is_tsan || is_msan |
| 51 } |
| 50 | 52 |
| 51 # compiler --------------------------------------------------------------------- | 53 # compiler --------------------------------------------------------------------- |
| 52 # | 54 # |
| 53 # Base compiler configuration. | 55 # Base compiler configuration. |
| 54 # | 56 # |
| 55 # See also "runtime_library" below for related stuff and a discusison about | 57 # See also "runtime_library" below for related stuff and a discusison about |
| 56 # where stuff should go. Put warning related stuff in the "warnings" config. | 58 # where stuff should go. Put warning related stuff in the "warnings" config. |
| 57 | 59 |
| 58 config("compiler") { | 60 config("compiler") { |
| 59 cflags = [] | 61 cflags = [] |
| (...skipping 892 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 952 cflags += [ "-gsplit-dwarf" ] | 954 cflags += [ "-gsplit-dwarf" ] |
| 953 } | 955 } |
| 954 } | 956 } |
| 955 } | 957 } |
| 956 | 958 |
| 957 config("no_symbols") { | 959 config("no_symbols") { |
| 958 if (!is_win) { | 960 if (!is_win) { |
| 959 cflags = [ "-g0" ] | 961 cflags = [ "-g0" ] |
| 960 } | 962 } |
| 961 } | 963 } |
| OLD | NEW |