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

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

Issue 2379803002: Linux create_sdk GN build for host (Closed)
Patch Set: Move create_timestamp.gni Created 4 years, 2 months 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
« no previous file with comments | « BUILD.gn ('k') | pkg/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 import("//build/config/android/config.gni") 5 import("//build/config/android/config.gni")
6 if (current_cpu == "arm") { 6 if (current_cpu == "arm") {
7 import("//build/config/arm.gni") 7 import("//build/config/arm.gni")
8 } 8 }
9 if (current_cpu == "mipsel" || current_cpu == "mips64el") { 9 if (current_cpu == "mipsel" || current_cpu == "mips64el") {
10 import("//build/config/mips.gni") 10 import("//build/config/mips.gni")
(...skipping 679 matching lines...) Expand 10 before | Expand all | Expand 10 after
690 "-Wno-unused-function", # http://crbug.com/505316 690 "-Wno-unused-function", # http://crbug.com/505316
691 "-Wno-unused-value", # http://crbug.com/505318 691 "-Wno-unused-value", # http://crbug.com/505318
692 "-Wno-unused-local-typedef", # http://crbug.com/411648 692 "-Wno-unused-local-typedef", # http://crbug.com/411648
693 ] 693 ]
694 } 694 }
695 } else { 695 } else {
696 # Common GCC warning setup. 696 # Common GCC warning setup.
697 default_warning_flags += [ 697 default_warning_flags += [
698 # Enables. 698 # Enables.
699 "-Wendif-labels", # Weird old-style text after an #endif. 699 "-Wendif-labels", # Weird old-style text after an #endif.
700 "-Werror", # Warnings as errors.
701 700
702 # Disables. 701 # Disables.
703 "-Wno-missing-field-initializers", # "struct foo f = {0};" 702 "-Wno-missing-field-initializers", # "struct foo f = {0};"
704 "-Wno-unused-parameter", # Unused function parameters. 703 "-Wno-unused-parameter", # Unused function parameters.
705 ] 704 ]
706 705
707 if (is_mac) { 706 if (is_mac) {
708 # TODO(abarth): Re-enable once https://github.com/domokit/mojo/issues/728 707 # TODO(abarth): Re-enable once https://github.com/domokit/mojo/issues/728
709 # is fixed. 708 # is fixed.
710 # default_warning_flags += [ "-Wnewline-eof" ] 709 # default_warning_flags += [ "-Wnewline-eof" ]
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
756 # Toggles between higher and lower warnings for code that is (or isn't) 755 # Toggles between higher and lower warnings for code that is (or isn't)
757 # part of Chromium. 756 # part of Chromium.
758 757
759 config("chromium_code") { 758 config("chromium_code") {
760 if (is_win) { 759 if (is_win) {
761 cflags = [ "/W4" ] # Warning level 4. 760 cflags = [ "/W4" ] # Warning level 4.
762 } else { 761 } else {
763 cflags = [ 762 cflags = [
764 "-Wall", 763 "-Wall",
765 "-Wextra", 764 "-Wextra",
765 "-Werror",
766 ] 766 ]
767 767
768 defines = [] 768 defines = []
769 if (!using_sanitizer && (!is_linux || !is_clang)) { 769 if (!using_sanitizer && (!is_linux || !is_clang)) {
770 # _FORTIFY_SOURCE isn't really supported by Clang now, see 770 # _FORTIFY_SOURCE isn't really supported by Clang now, see
771 # http://llvm.org/bugs/show_bug.cgi?id=16821. 771 # http://llvm.org/bugs/show_bug.cgi?id=16821.
772 # It seems to work fine with Ubuntu 12 headers though, so use it in 772 # It seems to work fine with Ubuntu 12 headers though, so use it in
773 # official builds. 773 # official builds.
774 # 774 #
775 # Non-chromium code is not guaranteed to compile cleanly with 775 # Non-chromium code is not guaranteed to compile cleanly with
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
943 cflags = [ "/Zi" ] # Produce PDB file, no edit and continue. 943 cflags = [ "/Zi" ] # Produce PDB file, no edit and continue.
944 } 944 }
945 ldflags = [ "/DEBUG" ] 945 ldflags = [ "/DEBUG" ]
946 } else { 946 } else {
947 cflags = [ 947 cflags = [
948 "-g3", 948 "-g3",
949 "-ggdb3", 949 "-ggdb3",
950 ] 950 ]
951 } 951 }
952 } 952 }
OLDNEW
« no previous file with comments | « BUILD.gn ('k') | pkg/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698