From b4d02c2edc2268e606a892e1b3d3bdcc5ddd67e8 Mon Sep 17 00:00:00 2001 From: Paolo Borelli Date: Sat, 6 Feb 2021 21:31:57 +0100 Subject: [PATCH] codegen: pass -std=c11 to the abi tests, since we use _Generic --- src/codegen/sys/tests.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/codegen/sys/tests.rs b/src/codegen/sys/tests.rs index be53d2f2d..35fb8404d 100644 --- a/src/codegen/sys/tests.rs +++ b/src/codegen/sys/tests.rs @@ -318,6 +318,8 @@ impl Compiler { pub fn new() -> Result> { let mut args = get_var("CC", "cc")?; args.push("-Wno-deprecated-declarations".to_owned()); + // For _Generic + args.push("-std=c11".to_owned()); // For %z support in printf when using MinGW. args.push("-D__USE_MINGW_ANSI_STDIO".to_owned()); args.extend(get_var("CFLAGS", "")?);