Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation error on wasm32-unknown-emscripten target #673

Closed
hoodmane opened this issue Apr 8, 2022 · 2 comments
Closed

Compilation error on wasm32-unknown-emscripten target #673

hoodmane opened this issue Apr 8, 2022 · 2 comments

Comments

@hoodmane
Copy link

hoodmane commented Apr 8, 2022

When targeting wasm32-unknown-emscripten the following two cfg tags both pass causing a compile error:

#[cfg(any(target_arch = "wasm32", target_env = "sgx"))]
#[path = "sys/stub.rs"]
mod inner;

#[cfg(unix)]
#[path = "sys/unix.rs"]
mod inner;

If I delete the sys/stub.rs one, chrono builds successfully for wasm32-unknown-emscripten. It seems to work correctly at runtime too.

@alex
Copy link
Contributor

alex commented Apr 8, 2022

I think this is a dupe of #519

@hoodmane
Copy link
Author

hoodmane commented Apr 8, 2022

Indeed. Closed as duplicate.

@hoodmane hoodmane closed this as completed Apr 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants