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 # Base compiler configuration. | 5 # Base compiler configuration. |
6 config("compiler") { | 6 config("compiler") { |
7 include_dirs = [ "//" ] | 7 include_dirs = [ "//", root_gen_dir ] |
8 if (is_win) { | 8 if (is_win) { |
9 cflags = [ | 9 cflags = [ |
10 "/Gy", # Enable function-level linking. | 10 "/Gy", # Enable function-level linking. |
11 "/GS", # Enable buffer security checking. | 11 "/GS", # Enable buffer security checking. |
12 "/EHsc", # Assume C functions can't throw exceptions and don't catch | 12 "/EHsc", # Assume C functions can't throw exceptions and don't catch |
13 # structured exceptions (only C++ ones). | 13 # structured exceptions (only C++ ones). |
14 ] | 14 ] |
15 } else { | 15 } else { |
16 # Common GCC compiler flags setup. | 16 # Common GCC compiler flags setup. |
17 # -------------------------------- | 17 # -------------------------------- |
(...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
389 } else { | 389 } else { |
390 cflags = [ "-g1" ] | 390 cflags = [ "-g1" ] |
391 } | 391 } |
392 } | 392 } |
393 | 393 |
394 config("no_symbols") { | 394 config("no_symbols") { |
395 if (!is_win) { | 395 if (!is_win) { |
396 cflags = [ "-g0" ] | 396 cflags = [ "-g0" ] |
397 } | 397 } |
398 } | 398 } |
OLD | NEW |