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

Unified Diff: third_party/libc++/BUILD.gn

Issue 2937433003: Make operator new/delete symbols have default visibility (Closed)
Patch Set: Created 3 years, 6 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/libc++/BUILD.gn
diff --git a/third_party/libc++/BUILD.gn b/third_party/libc++/BUILD.gn
index ff51ab9260f771fcdafc6fa7f937bbe0dff607aa..2ffd28523a0b49637dce155d4401849698651275 100644
--- a/third_party/libc++/BUILD.gn
+++ b/third_party/libc++/BUILD.gn
@@ -18,6 +18,13 @@ config("config") {
defines += [
"_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS",
"_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS",
+
+ # This resets the visibility to default only for the various
+ # flavors of operator new and operator delete. These symbols
+ # are weak and get overriden by Chromium-provided ones, but if
+ # these symbols had hidden visibility, this would make the
+ # Chromium symbols hidden too.
+ "_LIBCPP_OVERRIDABLE_FUNC_VIS=__attribute__((__visibility__(\"default\")))",
Nico 2017/06/19 19:22:41 Can you add a comment here along the lines of " el
Tom Anderson 2017/06/19 19:27:40 Done.
]
}
cflags = [
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698