Commit cb82a587 authored by brettw@chromium.org's avatar brettw@chromium.org

Modify some Linux flags for better GYP fidelity in GN build.

R=scottmg@chromium.org
TBR=scottmg

Review URL: https://codereview.chromium.org/134613002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@244539 0039d316-1c4b-4281-b951-d872f2087c98
parent 1161a49d
......@@ -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" ]
}
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?
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).
if (cpu_arch == "x64") {
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.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment