Skip to content

fix: do not define _LIBCPP_ABI_NAMESPACE=Cr for all native modules - #34944

Merged
VerteDinde merged 1 commit into
20-x-yfrom
20-x-y-backport-fix-libcpp
Jul 18, 2022
Merged

fix: do not define _LIBCPP_ABI_NAMESPACE=Cr for all native modules#34944
VerteDinde merged 1 commit into
20-x-yfrom
20-x-y-backport-fix-libcpp

Conversation

@VerteDinde

Copy link
Copy Markdown
Member

Manual backport of #34932

See that PR for details.

Notes: Fixed _dyld_missing_symbol_abort crash on macOS when using c++ native modules

…34932)

This define is only needed when linking against Chromiums libc++ which we currently
do not ship / expose the symbols of.  We probably should make those symbols visible and
actually ensure that electron-rebuild et. al link against our libc++ instead of the system libc++
but for now this fixes compilation issues on macOS where the default system clang links to the system libc++
which does not (obviously) use the Chromium ABI namespace.

For our nan tests which do link against Chromiums libc++ we define the ABI namespace in the spec runner.
@VerteDinde
VerteDinde requested review from a team as code owners July 18, 2022 04:51
@electron-cation electron-cation Bot added the new-pr 🌱 PR opened recently label Jul 18, 2022
@trop trop Bot added 20-x-y backport This is a backport PR semver/patch backwards-compatible bug fixes labels Jul 18, 2022
@electron-cation electron-cation Bot removed the new-pr 🌱 PR opened recently label Jul 18, 2022
@VerteDinde
VerteDinde merged commit 6fb73ba into 20-x-y Jul 18, 2022
@VerteDinde
VerteDinde deleted the 20-x-y-backport-fix-libcpp branch July 18, 2022 15:16
@release-clerk

release-clerk Bot commented Jul 18, 2022

Copy link
Copy Markdown

Release Notes Persisted

Fixed _dyld_missing_symbol_abort crash on macOS when using c++ native modules

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

20-x-y backport This is a backport PR semver/patch backwards-compatible bug fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants