You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bun v1.1 or later. We use Bun to run it's own code generators.
23
23
24
24
```ps1
25
-
> irm bun.sh/install.ps1 | iex
25
+
irm bun.sh/install.ps1 | iex
26
26
```
27
27
28
28
[Visual Studio](https://visualstudio.microsoft.com) with the "Desktop Development with C++" workload. While installing, make sure to install Git as well, if Git for Windows is not already installed.
29
29
30
30
Visual Studio can be installed graphically using the wizard or through WinGet:
31
31
32
32
```ps1
33
-
> winget install "Visual Studio Community 2022" --override "--add Microsoft.VisualStudio.Workload.NativeDesktop Microsoft.VisualStudio.Component.Git " -s msstore
33
+
winget install "Visual Studio Community 2022" --override "--add Microsoft.VisualStudio.Workload.NativeDesktop Microsoft.VisualStudio.Component.Git " -s msstore
34
34
```
35
35
36
36
After Visual Studio, you need the following:
@@ -48,10 +48,10 @@ After Visual Studio, you need the following:
48
48
[Scoop](https://scoop.sh) can be used to install these remaining tools easily.
49
49
50
50
```ps1 Scoop
51
-
> irm https://get.scoop.sh | iex
52
-
> scoop install nodejs-lts go rust nasm ruby perl ccache
51
+
irm https://get.scoop.sh | iex
52
+
scoop install nodejs-lts go rust nasm ruby perl ccache
53
53
# scoop seems to be buggy if you install llvm and the rest at the same time
@@ -63,19 +63,19 @@ After Visual Studio, you need the following:
63
63
If you intend on building WebKit locally (optional), you should install these packages:
64
64
65
65
```ps1 Scoop
66
-
> scoop install make cygwin python
66
+
scoop install make cygwin python
67
67
```
68
68
69
69
From here on out, it is **expected you use a PowerShell Terminal with `.\scripts\vs-shell.ps1` sourced**. This script is available in the Bun repository and can be loaded by executing it:
70
70
71
71
```ps1
72
-
> .\scripts\vs-shell.ps1
72
+
.\scripts\vs-shell.ps1
73
73
```
74
74
75
75
To verify, you can check for an MSVC-only command line such as `mt.exe`
76
76
77
77
```ps1
78
-
> Get-Command mt
78
+
Get-Command mt
79
79
```
80
80
81
81
<Note>
@@ -86,16 +86,16 @@ To verify, you can check for an MSVC-only command line such as `mt.exe`
86
86
## Building
87
87
88
88
```ps1
89
-
> bun run build
89
+
bun run build
90
90
91
91
# after the initial `bun run build` you can use the following to build
92
-
> ninja -Cbuild/debug
92
+
ninja -Cbuild/debug
93
93
```
94
94
95
95
If this was successful, you should have a `bun-debug.exe` in the `build/debug` folder.
96
96
97
97
```ps1
98
-
> .\build\debug\bun-debug.exe --revision
98
+
.\build\debug\bun-debug.exe --revision
99
99
```
100
100
101
101
You should add this to `$Env:PATH`. The simplest way to do so is to open the start menu, type "Path", and then navigate the environment variables menu to add `C:\.....\bun\build\debug` to the user environment variable `PATH`. You should then restart your editor (if it does not update still, log out and log back in).
@@ -111,15 +111,15 @@ You can run the test suite either using `bun test <path>` or by using the wrappe
111
111
112
112
```ps1
113
113
# Setup
114
-
> bun i --cwd packages\bun-internal-test
114
+
bun i --cwd packages\bun-internal-test
115
115
116
116
# Run the entire test suite with reporter
117
117
# the package.json script "test" uses "build/debug/bun-debug.exe" by default
118
-
> bun run test
118
+
bun run test
119
119
120
120
# Run an individual test file:
121
-
> bun-debug test node\fs
122
-
> bun-debug test "C:\bun\test\js\bun\resolve\import-meta.test.js"
121
+
bun-debug test node\fs
122
+
bun-debug test "C:\bun\test\js\bun\resolve\import-meta.test.js"
The binary will be located at `./build/debug/bun-debug`. It is recommended to add this to your `$PATH`. To verify the build worked, let's print the version number on the development build of Bun.
163
163
164
164
```bash
165
-
$ build/debug/bun-debug --version
165
+
build/debug/bun-debug --version
166
166
x.y.z_debug
167
167
```
168
168
@@ -261,17 +261,17 @@ WebKit is not cloned by default (to save time and disk space). To clone and buil
@@ -322,36 +322,36 @@ is not able to compile a simple test program.
322
322
To fix the error, we need to update the GCC version to 11. To do this, we'll need to check if the latest version is available in the distribution's official repositories or use a third-party repository that provides GCC 11 packages. Here are general steps:
323
323
324
324
```bash
325
-
$ sudo apt update
326
-
$ sudo apt install gcc-11 g++-11
325
+
sudo apt update
326
+
sudo apt install gcc-11 g++-11
327
327
# If the above command fails with `Unable to locate package gcc-11` we need
0 commit comments