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 support for Perl built with C++ #1294

Open
pmqs opened this issue Oct 16, 2022 · 3 comments
Open

Add support for Perl built with C++ #1294

pmqs opened this issue Oct 16, 2022 · 3 comments

Comments

@pmqs
Copy link

pmqs commented Oct 16, 2022

For Perl XS modules, particularly those in the core, you need your module to support being build with a Perl binary created with a C++ compiler.

I'm just updating Compress-Raw-Zlib with a C- related change that gets stung with this use-case more often that I'd like. The typical workflow goes like tis

  • I update the module, forgetting to test the C++ use case
  • code gets uploaded to CPAN
  • the smokes run but they fail with the C++ builds
  • I scramble to fix the issue & upload a to CPAN

I have all of the use-cases I need cooked into my GitHub actions, but this one is missing. Any chance of adding C++ support?

@shogo82148
Copy link
Owner

I have never built Perl with C++.
How do I do that?

@pmqs
Copy link
Author

pmqs commented Oct 17, 2022

At the configure stage just use Dcc to use a C++ compiler rather that the default C compiler.

configure -Dcc=g++ ...

or this for clang

configure -Dcc=clang++ ...

@shogo82148
Copy link
Owner

I did.
However, I don't want to add more variant of perl binaries.

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

No branches or pull requests

2 participants