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

feat: add c99 mode in build.rs for issue #33 #34

Closed
wants to merge 1 commit into from

Conversation

Peefy
Copy link

@Peefy Peefy commented Jul 27, 2023

Description

Close #33. add c99 mode in build.rs for issue #33 for lower cc version.

@Peefy
Copy link
Author

Peefy commented Jul 27, 2023

@BurntSushi Hi there. PTAL

pcre2-sys/build.rs Outdated Show resolved Hide resolved
@Peefy
Copy link
Author

Peefy commented Aug 8, 2023

Description

Close #33. add c99 mode in build.rs for issue #33 for lower cc version.

The gcc version is 4.8.5

// only occurs in some environments, but one possible guess is that this
// supports older compilers. Either way, there is still some uncertainty
// about why enabling this flag is necessary. See #33 for more details.
builder.flag("-std=c99");
Copy link
Contributor

@carenas carenas Sep 27, 2023

Choose a reason for hiding this comment

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

gcc < 5 defaults to C89, so it will fail to build as described in PCRE2Project/pcre2#163

@Peefy Peefy closed this Feb 20, 2024
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.

error: failed to run custom build command for pcre2-sys v0.2.6 on the centos7 platform
3 participants