We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9899913 commit c424592Copy full SHA for c424592
build.rs
@@ -274,7 +274,10 @@ fn emcc_version_code() -> Option<u64> {
274
return None;
275
}
276
let version = stdout.unwrap();
277
- let mut pieces = version.trim().split('.');
+
278
+ // Some Emscripten versions come with `-git` attached, so split the
279
+ // version string also on the `-` char.
280
+ let mut pieces = version.trim().split(|c| c == '.' || c == '-');
281
282
let major = pieces.next().and_then(|x| x.parse().ok()).unwrap_or(0);
283
let minor = pieces.next().and_then(|x| x.parse().ok()).unwrap_or(0);
0 commit comments