Index: build/config/compiler/BUILD.gn |
diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn |
index 164b97d26260f3e238834c36ffad1e9e53037f5c..48950664f6b98d7494d81fe82651786850e592a0 100644 |
--- a/build/config/compiler/BUILD.gn |
+++ b/build/config/compiler/BUILD.gn |
@@ -71,7 +71,7 @@ if (!is_win) { |
# |
# Base compiler configuration. |
# |
-# See also "runtime_library" below for related stuff and a discusison about |
+# See also "runtime_library" below for related stuff and a discussion about |
# where stuff should go. Put warning related stuff in the "warnings" config. |
config("compiler") { |
@@ -385,6 +385,13 @@ config("compiler") { |
#"-Wl,--threads", |
#"-Wl,--thread-count=4", |
] |
+ |
+ # TODO(thestig): Make this flag work with GN. |
+ #if (!is_chromeos && !(is_asan || is_lsan || is_tsan || is_msan)) { |
+ # ldflags += [ |
+ # "-Wl,--detect-odr-violations", |
+ # ] |
+ #} |
} |
if (linux_use_bundled_binutils) { |