File tree 2 files changed +24
-10
lines changed
2 files changed +24
-10
lines changed Original file line number Diff line number Diff line change @@ -18,11 +18,18 @@ rustflags = ["-C", "target-feature=+crt-static"]
18
18
[target .i686-pc-windows-msvc ]
19
19
rustflags = [" -C" , " target-feature=+crt-static" ]
20
20
21
- [target .aarch64-apple-darwin ]
21
+ [target .'cfg(target_os = "macos")' ]
22
22
linker = " rust-lld"
23
23
24
- [target .aarch64-unknown-linux-gnu ]
25
- linker = " aarch64-linux-gnu-gcc"
24
+ [target .'cfg(all(target_os = "linux", target_env = "gnu"))' ]
25
+ rustflags = [
26
+ " --cfg" ,
27
+ " tokio_unstable" ,
28
+ " -Zshare-generics=y" ,
29
+ " -Zthreads=8" ,
30
+ " -Csymbol-mangling-version=v0" ,
31
+ " -Clink-arg=-fuse-ld=lld" ,
32
+ ]
26
33
27
34
[target .aarch64-unknown-linux-musl ]
28
35
linker = " aarch64-linux-musl-gcc"
Original file line number Diff line number Diff line change 4
4
- All pull requests should be opened against ` canary ` .
5
5
- The changes on the ` canary ` branch are published to the ` @canary ` tag on npm regularly.
6
6
7
- To develop locally:
7
+ ## Dependencies
8
+
9
+ - Install Rust and Cargo via [ rustup] ( https://rustup.rs ) .
10
+ - Install the [ GitHub CLI] ( https://github.com/cli/cli#installation ) .
11
+ - Enable pnpm:
12
+ ```
13
+ corepack enable pnpm
14
+ ```
15
+ - (Linux) Install LLD, the LLVM linker:
16
+ ```
17
+ sudo apt install lld
18
+ ```
19
+
20
+ ## Local Development
8
21
9
- 1 . Install Rust and Cargo via [ rustup] ( https://rustup.rs ) .
10
- 1 . Install the [ GitHub CLI] ( https://github.com/cli/cli#installation ) .
11
22
1 . Clone the Next.js repository (download only recent commits for faster clone):
12
23
```
13
24
gh repo clone vercel/next.js -- --filter=blob:none --branch canary --single-branch
@@ -16,10 +27,6 @@ To develop locally:
16
27
```
17
28
git checkout -b MY_BRANCH_NAME origin/canary
18
29
```
19
- 1 . Enable pnpm:
20
- ```
21
- corepack enable pnpm
22
- ```
23
30
1 . Install the dependencies with:
24
31
```
25
32
pnpm install
You can’t perform that action at this time.
0 commit comments