-
Notifications
You must be signed in to change notification settings - Fork 15
Fix build [#22] #23
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 build [#22] #23
Conversation
I guess I see what might be the issue. Can you try the following patch: - s/\$\*\.c(pp|xx)(?=\n|\Z)/-xc++ -std=c++0x \$\*\.c$1/g
+ s/\$\*\.c(pp|xx)(?=\n|\r|\Z)/-xc++ -std=c++0x \$\*\.c$1/g The regex tries to match Thanks! |
That change also works. If what you really care about is EOL matching, however, why not the (much easier to read, IMO):
It's really not clear to me why you're including Here's what's in
|
I should also note that, based on conversation within irc.perl.org#toolchain, this bug depends on the installed version of ExtUtils::MakeMaker -- it will not trigger with version 7.10, but will will with anything more recent. |
My apologies -- I was accidentally testing your patch, above, with EUMM 7.10. Once I upgraded back to EUMM 7.16, both your suggested patch and my suggested alternative DO NOT work. My original patch, removing the EOL look-ahead, does work with EUMM 7.16. |
TBH, I always struggle to remember what |
Per BinGOs in #toolchain, the issue is a trailing space is being added. This patch:
works around that. |
Hmm, maybe there is some space before the newline. TBH if it turns out to be too complicated your first approach will probably just do it. I guess there should not be to many possibilities for false matches. But I am somewhat curious why it should not match the output you posted above for |
Can you update and force push this PR? And maybe also include the |
Force pushed with the addition of the |
@@ -224,7 +224,7 @@ my $orig = \&ExtUtils::MM_Unix::c_o; | |||
foreach (@rv) { | |||
# add c++0x flag only for cpp files | |||
# otherwise XS perl handshake fails | |||
s/\$\*\.c(pp|xx)(?=\n|\Z)/-xc++ -std=c++0x \$\*\.c$1/g | |||
s/\$\*\.c(pp|xx)\s*(?=\n|\r|\Z)/-xc++ -std=c++2x \$\*\.c$1/gm |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why did you change c++0x
to c++2x
? Oversight? Not sure that even exists?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
crap, that's just a dumb typo. 1 sec.
Force pushed a version that doesn't have that '2' in there 8^/ |
Thanks to BinGOs in #toolchain for pointing out the additional space.
And force-pushed one more, taking the |
Just read perlre again ( 😉) and the regex could probably even be further optimized ( |
Thanks for your report, troubleshooting and PR! |
Not sure what the removed parenthetical is supposed to be doing, but based on the values I see in , it won't ever match.
This change fixes the build issues I see on both MacOS X and Linux.