Skip to content

Commit

Permalink
Merge pull request #2076 from Manishearth/emscripten-i128
Browse files Browse the repository at this point in the history
Enable 128-bit integers on emscripten post Rust 1.40
  • Loading branch information
oli-obk committed Aug 21, 2021
2 parents f309485 + 082e18f commit 990f7eb
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions serde/build.rs
Expand Up @@ -53,9 +53,10 @@ fn main() {
// 128-bit integers stabilized in Rust 1.26:
// https://blog.rust-lang.org/2018/05/10/Rust-1.26.html
//
// Disabled on Emscripten targets as Emscripten doesn't
// currently support integers larger than 64 bits.
if minor >= 26 && !emscripten {
// Disabled on Emscripten targets before Rust 1.40 since
// Emscripten did not support 128-bit integers until Rust 1.40
// (https://github.com/rust-lang/rust/pull/65251)
if minor >= 26 && (!emscripten || minor >= 40) {
println!("cargo:rustc-cfg=integer128");
}

Expand Down

0 comments on commit 990f7eb

Please sign in to comment.