build.rs: don't use -pedantic
flag
In some build systems, target sysroots may use non-standard C extentions like `#include_next`. In such cases, the `-pedantic` flag breaks the compilation. Resolves issue #1923.
This commit is contained in:
parent
73fb637078
commit
57f58c98f1
1
build.rs
1
build.rs
@ -111,7 +111,6 @@ fn cpp_flags(compiler: &cc::Tool) -> &'static [&'static str] {
|
|||||||
static NON_MSVC_FLAGS: &[&str] = &[
|
static NON_MSVC_FLAGS: &[&str] = &[
|
||||||
"-fvisibility=hidden",
|
"-fvisibility=hidden",
|
||||||
"-std=c1x", // GCC 4.6 requires "c1x" instead of "c11"
|
"-std=c1x", // GCC 4.6 requires "c1x" instead of "c11"
|
||||||
"-pedantic",
|
|
||||||
"-Wall",
|
"-Wall",
|
||||||
"-Wextra",
|
"-Wextra",
|
||||||
"-Wbad-function-cast",
|
"-Wbad-function-cast",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user