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

Add cxx backend? #31

Open
Gankra opened this issue Jun 30, 2024 · 0 comments
Open

Add cxx backend? #31

Gankra opened this issue Jun 30, 2024 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed question Further information is requested

Comments

@Gankra
Copy link
Owner

Gankra commented Jun 30, 2024

We have a "c"/"cc" backend. It would be nice to extend/generalize that to a cxx backend.

The C backend already has some cases for what compiler it's targetting, on paper there's very little to change for cxx, but I haven't thought it through.

abi-cafe/src/abis/c.rs

Lines 47 to 52 in 6ba6865

pub struct CcAbiImpl {
cc_flavor: CCFlavor,
platform: Platform,
mode: &'static str,
}

The one thing that jumps to mind is enum class existing and having better repr support.

@Gankra Gankra added enhancement New feature or request help wanted Extra attention is needed question Further information is requested labels Jun 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant