Skip to content

Commit

Permalink
codegen: pass -std=c11 to the abi tests, since we use _Generic
Browse files Browse the repository at this point in the history
  • Loading branch information
pbor committed Feb 7, 2021
1 parent 967e8d7 commit 11538b2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/codegen/sys/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,8 @@ impl Compiler {
pub fn new() -> Result<Compiler, Box<dyn Error>> {
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", "")?);
Expand Down

0 comments on commit 11538b2

Please sign in to comment.