From bcedecdbadfe519fa07049f75bec1393024a1dad Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Wed, 31 Aug 2016 20:50:47 +0000 Subject: [PATCH] Use correct ar for emscripten --- src/lib.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index f7a6341..3b56ad1 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -778,6 +778,8 @@ impl Config { }).unwrap_or_else(|| { if self.get_target().contains("android") { PathBuf::from(format!("{}-ar", self.get_target())) + } else if self.get_target().contains("emscripten") { + PathBuf::from("emar") } else { PathBuf::from("ar") }