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/linux/sysroot.gni") | 5 import("//build/config/sysroot.gni") |
6 | 6 |
7 # Base compiler configuration. | 7 # Base compiler configuration. |
8 config("compiler") { | 8 config("compiler") { |
9 include_dirs = [ "//", root_gen_dir ] | 9 include_dirs = [ "//", root_gen_dir ] |
10 if (is_win) { | 10 if (is_win) { |
11 cflags = [ | 11 cflags = [ |
12 "/Gy", # Enable function-level linking. | 12 "/Gy", # Enable function-level linking. |
13 "/GS", # Enable buffer security checking. | 13 "/GS", # Enable buffer security checking. |
14 "/EHsc", # Assume C functions can't throw exceptions and don't catch | 14 "/EHsc", # Assume C functions can't throw exceptions and don't catch |
15 # structured exceptions (only C++ ones). | 15 # structured exceptions (only C++ ones). |
(...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
412 } else { | 412 } else { |
413 cflags = [ "-g1" ] | 413 cflags = [ "-g1" ] |
414 } | 414 } |
415 } | 415 } |
416 | 416 |
417 config("no_symbols") { | 417 config("no_symbols") { |
418 if (!is_win) { | 418 if (!is_win) { |
419 cflags = [ "-g0" ] | 419 cflags = [ "-g0" ] |
420 } | 420 } |
421 } | 421 } |
OLD | NEW |