Skip to content

Commit

Permalink
feat: add c99 mode in build.rs for issue BurntSushi#33
Browse files Browse the repository at this point in the history
  • Loading branch information
Peefy committed Jul 27, 2023
1 parent 5c5d720 commit 181a3b9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pcre2-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,12 @@ fn main() {
{
builder.debug(true);
}
// We enable C99 mode when compiling PCRE2. Because without it, build errors
// have been observed in some environments. It's not totally clear why this
// 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");
builder.compile("libpcre2.a");
}

Expand Down

0 comments on commit 181a3b9

Please sign in to comment.