forked from pool/nodejs-electron
- New upstream release 25.9.0 * Added support for chrome.scripting extension APIs. * Fixed BrowserView.setBounds calls not painting view in new bounds in some cases. * Fixed an issue where webContents.print could fail when options is a frozen object. - Do not export internal v8 apis used by no known application (v8-hide-private-symbols.patch) OBS-URL: https://build.opensuse.org/request/show/1115873 OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs-electron?expand=0&rev=99
22 lines
721 B
Diff
22 lines
721 B
Diff
Do not export v8 symbols that are used only in unit tests but not exposed in headers.
|
|
This reduces the size of the electron binary by 2MB.
|
|
|
|
--- src/v8/src/base/macros.h.old 2023-09-29 08:54:55.701965801 +0200
|
|
+++ src/v8/src/base/macros.h 2023-10-03 11:54:02.305086047 +0200
|
|
@@ -399,11 +399,15 @@ bool is_inbounds(float_t v) {
|
|
|
|
// Setup for Linux shared library export.
|
|
#if V8_HAS_ATTRIBUTE_VISIBILITY
|
|
+#if defined(HIDE_PRIVATE_SYMBOLS)
|
|
+#define V8_EXPORT_PRIVATE __attribute__((visibility("hidden")))
|
|
+#else
|
|
#ifdef BUILDING_V8_SHARED
|
|
#define V8_EXPORT_PRIVATE __attribute__((visibility("default")))
|
|
#else
|
|
#define V8_EXPORT_PRIVATE
|
|
#endif
|
|
+#endif // HIDE_PRIVATE_SYMBOLS
|
|
#else
|
|
#define V8_EXPORT_PRIVATE
|
|
#endif
|