We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5c5d720 commit 181a3b9Copy full SHA for 181a3b9
pcre2-sys/build.rs
@@ -85,6 +85,12 @@ fn main() {
85
{
86
builder.debug(true);
87
}
88
+ // We enable C99 mode when compiling PCRE2. Because without it, build errors
89
+ // have been observed in some environments. It's not totally clear why this
90
+ // only occurs in some environments, but one possible guess is that this
91
+ // supports older compilers. Either way, there is still some uncertainty
92
+ // about why enabling this flag is necessary. See #33 for more details.
93
+ builder.flag("-std=c99");
94
builder.compile("libpcre2.a");
95
96
0 commit comments