about summary refs log tree commit diff
path: root/src/test/incremental/thinlto
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2019-04-06 00:14:47 +0200
committerGitHub <noreply@github.com>2019-04-06 00:14:47 +0200
commit8455818b319f47bbe3505ff5307e21d9c4acb869 (patch)
tree245d505fa744308ff7ffd95a061c6c41f536638f /src/test/incremental/thinlto
parentc065367ca05b291844a753c987538e24683aa90a (diff)
parentbb2c0d183950c0c35d67f1bc0909dcf5829e888c (diff)
downloadrust-8455818b319f47bbe3505ff5307e21d9c4acb869.tar.gz
rust-8455818b319f47bbe3505ff5307e21d9c4acb869.zip
Rollup merge of #59727 - alexcrichton:wasi-apis, r=fitzgen
wasi: Use shared API for preopened fds

This commit updates the wasi target with supported added in
CraneStation/wasi-sysroot#10. That function allows both C and Rust to
cooperate in how preopened files are managed, enabling us to learn about
propened files through the same interface. The `open_parent` function in
the wasi `fs` module was updated to avoid its own initialization of a
global preopened map and instead delegate to libc to perform this
functionality.

This should both be more robust into the future in terms of handling
path logic as well as ensuring the propened map is correctly set up at
process boot time. This does currently require some unfortunate
allocations on our side, but if that becomes an issue we can always
paper over those in time!
Diffstat (limited to 'src/test/incremental/thinlto')
0 files changed, 0 insertions, 0 deletions