mirror of
https://github.com/denoland/deno.git
synced 2024-11-21 15:04:11 -05:00
chore: fix development issues on Windows (#14030)
This commit is contained in:
parent
45ef3c91c2
commit
b410937556
4 changed files with 13 additions and 3 deletions
|
@ -1,5 +1,14 @@
|
||||||
[target.x86_64-pc-windows-msvc]
|
[target.x86_64-pc-windows-msvc]
|
||||||
rustflags = ["-C", "target-feature=+crt-static"]
|
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]
|
[target.aarch64-apple-darwin]
|
||||||
rustflags = ["-C", "link-arg=-fuse-ld=lld"]
|
rustflags = ["-C", "link-arg=-fuse-ld=lld"]
|
||||||
|
|
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
|
@ -142,8 +142,6 @@ jobs:
|
||||||
export_default_credentials: true
|
export_default_credentials: true
|
||||||
|
|
||||||
- name: Error on warning
|
- name: Error on warning
|
||||||
# TODO(piscisaureus): enable this on Windows again.
|
|
||||||
if: "!startsWith(matrix.os, 'windows')"
|
|
||||||
run: echo "RUSTFLAGS=-D warnings" >> $GITHUB_ENV
|
run: echo "RUSTFLAGS=-D warnings" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Configure canary build
|
- name: Configure canary build
|
||||||
|
|
|
@ -2334,7 +2334,7 @@ fn issue9750() {
|
||||||
Input("yy\n"),
|
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)]"),
|
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"),
|
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"),
|
Input("n\n"),
|
||||||
Output("error: Uncaught (in promise) PermissionDenied: Requires env access to \"SECRET\", run again with the --allow-env flag\r\n"),
|
Output("error: Uncaught (in promise) PermissionDenied: Requires env access to \"SECRET\", run again with the --allow-env flag\r\n"),
|
||||||
],
|
],
|
||||||
|
|
|
@ -7,8 +7,11 @@ use deno_core::error::AnyError;
|
||||||
use deno_core::op;
|
use deno_core::op;
|
||||||
|
|
||||||
use deno_core::Extension;
|
use deno_core::Extension;
|
||||||
|
#[cfg(unix)]
|
||||||
use deno_core::OpState;
|
use deno_core::OpState;
|
||||||
|
#[cfg(unix)]
|
||||||
use std::cell::RefCell;
|
use std::cell::RefCell;
|
||||||
|
#[cfg(unix)]
|
||||||
use std::rc::Rc;
|
use std::rc::Rc;
|
||||||
|
|
||||||
#[cfg(unix)]
|
#[cfg(unix)]
|
||||||
|
|
Loading…
Reference in a new issue