Commit 4dce5e87 authored by Thomas Anderson's avatar Thomas Anderson Committed by Commit Bot

Fix mac/component/asan builds

Mac asan libraries don't provide operator new/delete unlike on Linux,
so libc++ must provide them.

BUG=933365
R=thakis

Change-Id: I99dfe5aa7979721c0026bdb73845b1a8a012708e
Reviewed-on: https://chromium-review.googlesource.com/c/1479392
Commit-Queue: Thomas Anderson <thomasanderson@chromium.org>
Commit-Queue: Nico Weber <thakis@chromium.org>
Auto-Submit: Thomas Anderson <thomasanderson@chromium.org>
Reviewed-by: default avatarNico Weber <thakis@chromium.org>
Cr-Commit-Position: refs/heads/master@{#633855}
parent 26ffb643
......@@ -123,7 +123,7 @@ target(_libcxx_target_type, "libc++") {
]
}
}
if (is_asan || is_tsan || is_msan) {
if (!is_mac && (is_asan || is_tsan || is_msan)) {
# In {a,t,m}san configurations, operator new and operator delete will be
# provided by the sanitizer runtime library. Since libc++ defines these
# symbols with weak linkage, and the *san runtime uses strong linkage, it
......
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