Skip to content

Commit 4adcbf8

Browse files
committed
codegen: pass -std=c11 to the abi tests, since we use _Generic
1 parent d5352ae commit 4adcbf8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/codegen/sys/tests.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,8 @@ impl Compiler {
318318
pub fn new() -> Result<Compiler, Box<dyn Error>> {
319319
let mut args = get_var("CC", "cc")?;
320320
args.push("-Wno-deprecated-declarations".to_owned());
321+
// For _Generic
322+
args.push("-std=c11".to_owned());
321323
// For %z support in printf when using MinGW.
322324
args.push("-D__USE_MINGW_ANSI_STDIO".to_owned());
323325
args.extend(get_var("CFLAGS", "")?);

0 commit comments

Comments
 (0)