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

Unified Diff: build/config/sanitizers/BUILD.gn

Issue 1840873002: Enable symbols with ASan (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Try to write some gn Created 4 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « build/config/compiler/compiler.gni ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/config/sanitizers/BUILD.gn
diff --git a/build/config/sanitizers/BUILD.gn b/build/config/sanitizers/BUILD.gn
index 2580a1507087100e607753f7efa37e23f70d8ddf..c5e8c4b41357c111dedb664f70af5603c9342e11 100644
--- a/build/config/sanitizers/BUILD.gn
+++ b/build/config/sanitizers/BUILD.gn
@@ -150,16 +150,19 @@ config("default_sanitizer_flags") {
defines = []
configs = [ ":default_sanitizer_ldflags" ]
+ # Sanitizers need line table info for stack traces. They don't need type info
+ # or variable info, so we can leave that out to speed up the build.
+ if (is_clang && using_sanitizer) {
+ cflags += [ "-gline-tables-only" ]
+ }
+
# Only works on Posix-like platforms.
# FIXME: this is not true, remove the conditional.
if (is_posix) {
# Common options for AddressSanitizer, LeakSanitizer, ThreadSanitizer,
# MemorySanitizer and non-official CFI builds.
if (using_sanitizer || (is_lto && !is_official_build)) {
- cflags += [
- "-fno-omit-frame-pointer",
- "-gline-tables-only",
- ]
+ cflags += [ "-fno-omit-frame-pointer" ]
}
if (is_asan) {
asan_blacklist_path =
« no previous file with comments | « build/config/compiler/compiler.gni ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698