# --------------------------------
cflags += [
"-fno-strict-aliasing", # See http://crbug.com/32204
- "-fvisibility=hidden",
]
cflags_cc += [
"-fno-exceptions",
"-fno-threadsafe-statics",
+ # Not exporting C++ inline functions can generally be applied anywhere
+ # so we do so here. Normal function visibility is controlled by
+ # //build/config/gcc:symbol_visibility_hidden.
"-fvisibility-inlines-hidden",
]
if (cpu_arch == "x64") {
# 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)
+ gold_path = rebase_path("//third_party/binutils/Linux_x64/Release/bin",
+ root_build_dir)
ldflags += [
"-B$gold_path",
"_CRT_RAND_S",
"_CRT_SECURE_NO_DEPRECATE",
"_SCL_SECURE_NO_DEPRECATE",
- "_UNICODE",
- "UNICODE",
]
}
]
}
- # TODO(brettw) Ones below here should be clang-only when we have a flag
- # for it.
if (is_clang) {
cflags += [
- "-Wheader-hygiene",
-
# This warns on using ints as initializers for floats in
# initializer lists (e.g. |int a = f(); CGSize s = { a, a };|),
# which happens in several places in chrome code. Not sure if
# Clang spots more unused functions.
"-Wno-unused-function",
-
- # Warns when a const char[] is converted to bool.
- "-Wstring-conversion",
]
}