Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(15)

Side by Side Diff: tools/gn/secondary/build/config/compiler/BUILD.gn

Issue 46003002: Add a target in GN that generates a last_change.h file for the SVN revision. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698