From 1882fc41bb4db4e8ae05ef64f7c2c590664ddd39 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Mon, 27 May 2019 09:14:29 -0700 Subject: [PATCH] Build sandboxed-system-primitives with -std=gnu99. --- wasmtime-wasi/build.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wasmtime-wasi/build.rs b/wasmtime-wasi/build.rs index 1ed59201b4..4145068a57 100644 --- a/wasmtime-wasi/build.rs +++ b/wasmtime-wasi/build.rs @@ -6,7 +6,9 @@ use std::env; use std::path::PathBuf; fn main() { - let dst = Config::new("sandboxed-system-primitives").build(); + let dst = Config::new("sandboxed-system-primitives") + .cflag("-std=gnu99") + .build(); println!("cargo:rustc-link-search=native={}", dst.display()); println!("cargo:rustc-link-lib=static=SandboxedSystemPrimitives");