Commit b5b8c8a6 authored by Yang Guo's avatar Yang Guo Committed by Commit Bot

[gn] introduce v8_expose_symbols for symbol visibility

TBR=sergiyb@chromium.org

Bug: v8:8840
Change-Id: I04c2e6a1703764416cbb9987de262fe4d2b86b14
Reviewed-on: https://chromium-review.googlesource.com/c/1470105Reviewed-by: 's avatarYang Guo <yangguo@chromium.org>
Commit-Queue: Yang Guo <yangguo@chromium.org>
Cr-Commit-Position: refs/heads/master@{#59572}
parent 10f0d8c1
...@@ -53,6 +53,9 @@ declare_args() { ...@@ -53,6 +53,9 @@ declare_args() {
# Enable monolithic static library for embedders. # Enable monolithic static library for embedders.
v8_monolithic = false v8_monolithic = false
# Expose symbols for dynamic linking.
v8_expose_symbols = false
} }
if (v8_use_external_startup_data == "") { if (v8_use_external_startup_data == "") {
...@@ -113,7 +116,8 @@ if (v8_code_coverage && !is_clang) { ...@@ -113,7 +116,8 @@ if (v8_code_coverage && !is_clang) {
] ]
} }
if ((is_posix || is_fuchsia) && (v8_enable_backtrace || v8_monolithic)) { if ((is_posix || is_fuchsia) &&
(v8_enable_backtrace || v8_monolithic || v8_expose_symbols)) {
v8_remove_configs += [ "//build/config/gcc:symbol_visibility_hidden" ] v8_remove_configs += [ "//build/config/gcc:symbol_visibility_hidden" ]
v8_add_configs += [ "//build/config/gcc:symbol_visibility_default" ] v8_add_configs += [ "//build/config/gcc:symbol_visibility_default" ]
} }
......
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