improve windows support

This commit is contained in:
Folkert 2022-11-10 23:48:30 +01:00
parent b6b7d186e4
commit eafa1d6e5f
No known key found for this signature in database
GPG Key ID: 1F17F6FFD112B97C
2 changed files with 9 additions and 0 deletions

View File

@ -239,6 +239,11 @@ mod cli_run {
// TODO: `roc` and `roc dev` are currently buggy for `env.roc`
continue;
}
if cfg!(windows) {
// TODO: `roc dev` does not currently work on windows
}
run_roc_on(file, flags.clone(), stdin, roc_app_args, extra_env)
}
CliMode::RocRun => run_roc_on(

View File

@ -111,6 +111,10 @@ comptime {
@export(roc_send_signal, .{ .name = "roc_send_signal", .linkage = .Strong });
@export(roc_shm_open, .{ .name = "roc_shm_open", .linkage = .Strong });
}
if (builtin.os.tag == .windows) {
@export(roc_getppid_windows_stub, .{ .name = "roc_getppid", .linkage = .Strong });
}
}
pub export fn main() u8 {