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

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

Issue 2439173002: [windows] Make most file_win.cc functions use malloc for string conversions. (Closed)
Patch Set: Fix typo 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 | « no previous file | runtime/bin/directory_win.cc » ('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 714 matching lines...) Expand 10 before | Expand all | Expand 10 after
725 cflags = [ "-Os" ] + common_optimize_on_cflags # Favor size over speed. 725 cflags = [ "-Os" ] + common_optimize_on_cflags # Favor size over speed.
726 } else { 726 } else {
727 cflags = [ "-O3" ] + common_optimize_on_cflags 727 cflags = [ "-O3" ] + common_optimize_on_cflags
728 } 728 }
729 ldflags = common_optimize_on_ldflags 729 ldflags = common_optimize_on_ldflags
730 } 730 }
731 731
732 # Turn off optimizations. 732 # Turn off optimizations.
733 config("no_optimize") { 733 config("no_optimize") {
734 if (is_win) { 734 if (is_win) {
735 # The only difference on windows is that the inlining is less aggressive.
736 # (We accept the default level). Otherwise it is very slow.
735 cflags = [ 737 cflags = [
736 "/O2", # Do some optimizations. 738 "/O2", # Do some optimizations.
737 "/Oy-", # Disable omitting frame pointers, must be after /O2. 739 "/Oy-", # Disable omitting frame pointers, must be after /O2.
738 "/Ob0", # Disable all inlining (on by default).
739 ] 740 ]
740 } else if (is_android) { 741 } else if (is_android) {
741 # On Android we kind of optimize some things that don't affect debugging 742 # On Android we kind of optimize some things that don't affect debugging
742 # much even when optimization is disabled to get the binary size down. 743 # much even when optimization is disabled to get the binary size down.
743 cflags = [ 744 cflags = [
744 "-Os", 745 "-Os",
745 "-fdata-sections", 746 "-fdata-sections",
746 "-ffunction-sections", 747 "-ffunction-sections",
747 ] 748 ]
748 ldflags = common_optimize_on_ldflags 749 ldflags = common_optimize_on_ldflags
(...skipping 17 matching lines...) Expand all
766 cflags = [ "/Zi" ] # Produce PDB file, no edit and continue. 767 cflags = [ "/Zi" ] # Produce PDB file, no edit and continue.
767 } 768 }
768 ldflags = [ "/DEBUG" ] 769 ldflags = [ "/DEBUG" ]
769 } else { 770 } else {
770 cflags = [ 771 cflags = [
771 "-g3", 772 "-g3",
772 "-ggdb3", 773 "-ggdb3",
773 ] 774 ]
774 } 775 }
775 } 776 }
OLDNEW
« no previous file with comments | « no previous file | runtime/bin/directory_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698