about summary refs log tree commit diff
path: root/src/libstd/sys/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2016-03-08 01:04:36 +0000
committerbors <bors@rust-lang.org>2016-03-08 01:04:36 +0000
commit4352a8554f3765b98d27c1a0b1a170414f82b199 (patch)
tree1e67584b82b9f652f8bb1cc7e387746499288a0a /src/libstd/sys/unix/stack_overflow.rs
parent388ccda455140e51456980efc07d175c19dcf005 (diff)
parent660bbf4f6f4ce7a3d9e4fa7fdfc5e7c87145e049 (diff)
downloadrust-4352a8554f3765b98d27c1a0b1a170414f82b199.tar.gz
rust-4352a8554f3765b98d27c1a0b1a170414f82b199.zip
Auto merge of #31986 - ashleysommer:emscripten_fixes, r=alexcrichton
Fix building libstd on emscripten targets.

The main cause of the problem is that libstd/os/mod.rs treats emscripten targets as an alias of linux targets, whereas liblibc treats emscripten targets as musl-compliant, so it gets a slightly different struct stat64 defined.
This commit adds conditional compilation checks to use the correct timestamp format on fs metadata functions in the case of compiling to emscripten targets.

This commit also depends needs https://github.com/ashleysommer/rust/commit/f1575cff2d631e977038fdba3fa3422ba5f8f2fe applied in order to successfully build libstd with emscripten target.
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions