diff --git a/.cargo/config b/.cargo/config index bb3ca44df7..0c5791d5f0 100644 --- a/.cargo/config +++ b/.cargo/config @@ -1,5 +1,14 @@ [target.x86_64-pc-windows-msvc] rustflags = ["-C", "target-feature=+crt-static"] +[target.'cfg(all(windows, debug_assertions))'] +rustflags = [ + "-C", + "target-feature=+crt-static", + "-C", + # double the stack size to prevent swc overflowing the stack in debug + "link-arg=/STACK:2097152", +] + [target.aarch64-apple-darwin] rustflags = ["-C", "link-arg=-fuse-ld=lld"] diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c1d09b4c11..8ced05b06b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -142,8 +142,6 @@ jobs: export_default_credentials: true - name: Error on warning - # TODO(piscisaureus): enable this on Windows again. - if: "!startsWith(matrix.os, 'windows')" run: echo "RUSTFLAGS=-D warnings" >> $GITHUB_ENV - name: Configure canary build diff --git a/cli/tests/integration/run_tests.rs b/cli/tests/integration/run_tests.rs index beb5e8cae3..7c82acbf7a 100644 --- a/cli/tests/integration/run_tests.rs +++ b/cli/tests/integration/run_tests.rs @@ -2334,7 +2334,7 @@ fn issue9750() { Input("yy\n"), Output("⚠️ ️Deno requests env access. Run again with --allow-env to bypass this prompt.\r\n Allow? [y/n (y = yes allow, n = no deny)]"), Input("n\n"), - Output("⚠️ ️Deno requests env access to \"SECRET\". Run again with --allow-run to bypass this prompt.\r\n Allow? [y/n (y = yes allow, n = no deny)]"), + Output("⚠️ ️Deno requests env access to \"SECRET\". Run again with --allow-env to bypass this prompt.\r\n Allow? [y/n (y = yes allow, n = no deny)]"), Input("n\n"), Output("error: Uncaught (in promise) PermissionDenied: Requires env access to \"SECRET\", run again with the --allow-env flag\r\n"), ], diff --git a/runtime/ops/signal.rs b/runtime/ops/signal.rs index 1da3339ac5..52b5edc6b9 100644 --- a/runtime/ops/signal.rs +++ b/runtime/ops/signal.rs @@ -7,8 +7,11 @@ use deno_core::error::AnyError; use deno_core::op; use deno_core::Extension; +#[cfg(unix)] use deno_core::OpState; +#[cfg(unix)] use std::cell::RefCell; +#[cfg(unix)] use std::rc::Rc; #[cfg(unix)]