Index: build/config/compiler/BUILD.gn |
diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn |
index 8bfa465d346b1cf996437cb873a104232c0ad2ba..793cbea27aa7ff7f4962f27ea28295db782af097 100644 |
--- a/build/config/compiler/BUILD.gn |
+++ b/build/config/compiler/BUILD.gn |
@@ -101,6 +101,19 @@ config("compiler") { |
cflags += "-m32" |
ldflags += "-m32" |
} |
+ |
+ defines += [ "_FILE_OFFSET_BITS=64" ] |
+ |
+ # Omit unwind support in official builds to save space. We can use breakpad |
+ # for these builds. |
+ if (is_chrome_branded && is_official_build) { |
+ cflags += [ |
+ "-fno-unwind-tables", |
+ "-fno-asynchronous-unwind-tables", |
+ ] |
+ } else { |
+ cflags += [ "-funwind-tables" ] |
+ } |
} |
# Linux-specific compiler flags setup. |
@@ -114,9 +127,14 @@ config("compiler") { |
cflags += [ "-pthread" ] |
} |
- # Use gold for linking on 64-bit Linux only (on 32-bit it runs out of |
- # address space, and it doesn't support cross-compiling). |
if (cpu_arch == "x64") { |
+ # Enable libstdc++ debugging facilities to help catch problems early, see |
+ # http://crbug.com/65151 . |
+ # TODO(phajdan.jr): Should we enable this for all of POSIX? |
scottmg
2014/01/10 19:58:07
indent
|
+ defines += [ "__GLIBCXX_DEBUG=1" ] |
+ |
+ # Use gold for linking on 64-bit Linux only (on 32-bit it runs out of |
+ # address space, and it doesn't support cross-compiling). |
gold_path = rebase_path("//third_party/gold", ".", root_build_dir) |
ldflags += [ |
"-B$gold_path", |
@@ -164,6 +182,9 @@ config("compiler") { |
cflags += [ |
"-fcolor-diagnostics", |
] |
+ cflags_cc += [ |
+ "-std=gnu++11", |
+ ] |
} |
# Android-specific flags setup. |