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

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

Issue 2031903002: Update GN files w/ changes needed to make sanitizers work. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix symbolized definition Created 4 years, 7 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/BUILDCONFIG.gn ('k') | build/config/sanitizers/sanitizers.gni » ('j') | 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 7dd3dd2e62029fb06b28726329d0200ba498e3e8..e05568b4c64f85cb76bd8c20d52aceec63257694 100644
--- a/build/config/sanitizers/BUILD.gn
+++ b/build/config/sanitizers/BUILD.gn
@@ -38,6 +38,20 @@ group("deps_no_options") {
":default_sanitizer_ldflags",
]
deps = []
+
+ data = [
+ "//tools/valgrind/asan/",
+ ]
+ if (is_win) {
+ exe = ".exe"
+ } else {
+ exe = ""
+ }
+ data += [ "//third_party//llvm-build/Release+Asserts/bin/llvm-symbolizer${exe}" ]
+ if (is_linux) {
+ data += [ "//third_party/llvm-build/Release+Asserts/lib/libstdc++.so.6" ]
Nico 2016/06/02 18:16:41 Can you add a comment here that says that this is
Dirk Pranke 2016/06/02 18:47:08 Sure.
+ }
+
if (use_prebuilt_instrumented_libraries) {
deps += [ "//third_party/instrumented_libraries:deps" ]
}
@@ -45,6 +59,7 @@ group("deps_no_options") {
public_deps = [
"//buildtools/third_party/libc++:libcxx_proxy",
]
+ data += [ "$root_out_dir/libc++.so" ]
}
if (is_mac) {
data_deps = [
@@ -158,6 +173,14 @@ config("common_sanitizer_flags") {
cflags += [ "-gline-tables-only" ]
}
+ if (symbolized) {
+ cflags += [
Nico 2016/06/02 18:16:41 What's the motivation for this block? I can't find
Dirk Pranke 2016/06/02 18:47:08 These flags get passed directly in the 'release_ex
+ "-O1",
Nico 2016/06/02 18:16:41 Wouldn't the gn way for this be to pick a differen
Dirk Pranke 2016/06/02 18:47:08 Hm, probably. Good catch. I'll look at reworking t
+ "-fno-line-functions",
Nico 2016/06/02 18:16:41 This is supposed to be -fno-inline-functions I ass
Dirk Pranke 2016/06/02 18:47:08 Yup, that's a typo. Another good catch.
+ "-fno-inline",
+ ]
+ }
+
# Common options for AddressSanitizer, LeakSanitizer, ThreadSanitizer,
# MemorySanitizer and non-official CFI builds.
if (using_sanitizer || (is_cfi && !is_official_build)) {
« no previous file with comments | « build/config/BUILDCONFIG.gn ('k') | build/config/sanitizers/sanitizers.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698