Temporarily disable code that does not compile on windows (#2386)
And return ENOSYS. We do that so we can at least compile the code on CI. We'll be gradually enabling more and more functions. Also, enabled `proc_raise()` for windows.
This commit is contained in:
@ -2907,8 +2907,15 @@ wasm_runtime_init_wasi(WASMModuleInstanceCommon *module_inst,
|
||||
dir_list[i], errno);
|
||||
goto fail;
|
||||
}
|
||||
|
||||
#ifdef BH_PLATFORM_WINDOWS
|
||||
if (error_buf)
|
||||
snprintf(
|
||||
error_buf, error_buf_size,
|
||||
"pre-opening directory is not supported on windows platforms");
|
||||
goto fail;
|
||||
#else
|
||||
raw_fd = open(path, O_RDONLY | O_DIRECTORY, 0);
|
||||
#endif
|
||||
if (raw_fd == -1) {
|
||||
if (error_buf)
|
||||
snprintf(error_buf, error_buf_size,
|
||||
|
||||
Reference in New Issue
Block a user