-
-
Notifications
You must be signed in to change notification settings - Fork 105
Open
Description
There are a bunch of places where Unix-only apis are used. While Wild is currently an ELF-only linker and thus mostly usable for Unix targets (though there are a bunch of non-Unix OSes that use ELF), it would still be useful to use Wild on non-Unix hosts when cross-compiling from Windows. Or in my case compiling Wild to WASI. Would changes to support this be accepted? When compiling for WASI, I saw the following issues:
- Compilation fails on WASI even when the enabled feature flag is disabled davidlattimore/perfetto-recorder#9 (not relevant for Windows, fix merged)
- Bunch of
std::os::unix::ffi::OsStrExtuses. (feat: Support building on Windows #1629) -
default_target_archdoesn't compile on wasm32. - Rayon fails to initialize on WASI unless
.use_current_thread()is used. -
O_CLOEXEC(revert #548 - it's unnecessary #1463) -
make_executable(can be a no-op outside of Unix hosts) -
std::os::unix::fs::symlink -
fork(The Windows kernel technically supportsfork, but it is even slower than spawning a new process, which is already slow. Probably no benefit to gain from using the fork trick on Windows) (feat: Support building on Windows #1629)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels