about summary refs log tree commit diff
path: root/src/test/incremental/thinlto
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2019-04-05 06:37:03 -0700
committerAlex Crichton <alex@alexcrichton.com>2019-04-05 09:13:46 -0700
commitbb2c0d183950c0c35d67f1bc0909dcf5829e888c (patch)
tree8bd36677b85ed08a9e466dc1914014781722867c /src/test/incremental/thinlto
parent52980d0fb39134a26f73b39b384407e010fc3af5 (diff)
downloadrust-bb2c0d183950c0c35d67f1bc0909dcf5829e888c.tar.gz
rust-bb2c0d183950c0c35d67f1bc0909dcf5829e888c.zip
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