Skip to content

Conversation

al45tair
Copy link
Contributor

@al45tair al45tair commented Oct 4, 2024

In embedded mode, we mustn't have references to the C++ library, because some embedded platforms don't include the C++ library.

Additionally, it's good to avoid use of global operator new and operator delete, because they can be globally overridden and this has bitten us in the past.

rdar://137286187

@al45tair
Copy link
Contributor Author

al45tair commented Oct 4, 2024

@swift-ci Please smoke test

@al45tair al45tair requested a review from mikeash October 4, 2024 16:17
Copy link
Contributor

@rjmccall rjmccall left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A couple minor requests, but otherwise LGTM

Copy link
Contributor

@ktoso ktoso left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm

In embedded mode, we mustn't have references to the C++ library, because
some embedded platforms don't include the C++ library.

Additionally, it's good to avoid use of global operator new and operator
delete, because they can be globally overridden and this has bitten us
in the past.

rdar://137286187
@al45tair
Copy link
Contributor Author

al45tair commented Oct 7, 2024

@swift-ci Please smoke test

@al45tair
Copy link
Contributor Author

al45tair commented Oct 8, 2024

Looks like some C++ problems to do with the allocator on both Linux and Windows. Will go figure out what changes I need there.

Seems I forgot some constructors (this was causing build failures on
Linux and Windows, but not macOS).

rdar://137286187
@al45tair
Copy link
Contributor Author

al45tair commented Oct 8, 2024

@swift-ci Please smoke test

@al45tair al45tair merged commit a0a77fa into swiftlang:main Oct 9, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants