Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from Jul 18, 2022

Conversation

VerteDinde
Copy link
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 in the last 24 hours 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 in the last 24 hours 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
Copy link

release-clerk bot commented Jul 18, 2022

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.

None yet

3 participants