diff --git a/CHANGELOG.md b/CHANGELOG.md index 2cf4b6c719..d92797e587 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,7 @@ Versions with only mechanical changes will be omitted from the following list. * Fix `DurationRound` is not TZ aware (#495) * Implement `DurationRound` for `NaiveDateTime` * Add `DateTime::from_local()` to construct from given local date and time (#572) +* Correct build for wasm32-unknown-emscripten target (#568) ## 0.4.19 diff --git a/src/sys.rs b/src/sys.rs index 2e46b7e8eb..0fa67838eb 100644 --- a/src/sys.rs +++ b/src/sys.rs @@ -20,11 +20,11 @@ use std::time::{SystemTime, UNIX_EPOCH}; #[path = "sys/stub.rs"] mod inner; -#[cfg(unix)] +#[cfg(all(unix, not(target_arch = "wasm32"), not(target_env = "sgx")))] #[path = "sys/unix.rs"] mod inner; -#[cfg(windows)] +#[cfg(all(windows, not(target_arch = "wasm32"), not(target_env = "sgx")))] #[path = "sys/windows.rs"] mod inner;