We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d5352ae commit 4adcbf8Copy full SHA for 4adcbf8
src/codegen/sys/tests.rs
@@ -318,6 +318,8 @@ impl Compiler {
318
pub fn new() -> Result<Compiler, Box<dyn Error>> {
319
let mut args = get_var("CC", "cc")?;
320
args.push("-Wno-deprecated-declarations".to_owned());
321
+ // For _Generic
322
+ args.push("-std=c11".to_owned());
323
// For %z support in printf when using MinGW.
324
args.push("-D__USE_MINGW_ANSI_STDIO".to_owned());
325
args.extend(get_var("CFLAGS", "")?);
0 commit comments