bun-types 1.3.6-canary.20251226T140703 → 1.3.6-canary.20251228T140604
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -49,7 +49,7 @@ After Visual Studio, you need the following:
|
|
|
49
49
|
|
|
50
50
|
```ps1 Scoop
|
|
51
51
|
> irm https://get.scoop.sh | iex
|
|
52
|
-
> scoop install nodejs-lts go rust nasm ruby perl
|
|
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
|
|
54
54
|
> scoop install llvm@19.1.7
|
|
55
55
|
```
|
|
@@ -28,7 +28,7 @@ Using your system's package manager, install Bun's dependencies:
|
|
|
28
28
|
<CodeGroup>
|
|
29
29
|
|
|
30
30
|
```bash macOS (Homebrew)
|
|
31
|
-
$ brew install automake cmake coreutils gnu-sed go icu4c libiconv libtool ninja pkg-config rust ruby
|
|
31
|
+
$ brew install automake ccache cmake coreutils gnu-sed go icu4c libiconv libtool ninja pkg-config rust ruby
|
|
32
32
|
```
|
|
33
33
|
|
|
34
34
|
```bash Ubuntu/Debian
|
|
@@ -70,45 +70,28 @@ $ brew install bun
|
|
|
70
70
|
|
|
71
71
|
</CodeGroup>
|
|
72
72
|
|
|
73
|
-
### Optional: Install `
|
|
73
|
+
### Optional: Install `ccache`
|
|
74
74
|
|
|
75
|
-
|
|
75
|
+
ccache is used to cache compilation artifacts, significantly speeding up builds:
|
|
76
76
|
|
|
77
77
|
```bash
|
|
78
78
|
# For macOS
|
|
79
|
-
$ brew install
|
|
79
|
+
$ brew install ccache
|
|
80
80
|
|
|
81
|
-
# For
|
|
82
|
-
$
|
|
83
|
-
```
|
|
84
|
-
|
|
85
|
-
This will install `sccache` with S3 support. Our build scripts will automatically detect and use `sccache` with our shared S3 cache. **Note**: Not all versions of `sccache` are compiled with S3 support, hence we recommend installing it via `cargo`.
|
|
86
|
-
|
|
87
|
-
#### Registering AWS Credentials for `sccache` (Core Developers Only)
|
|
88
|
-
|
|
89
|
-
Core developers have write access to the shared S3 cache. To enable write access, you must log in with AWS credentials. The easiest way to do this is to use the [`aws` CLI](https://aws.amazon.com/cli/) and invoke [`aws configure` to provide your AWS security info](https://docs.aws.amazon.com/cli/latest/reference/configure/).
|
|
81
|
+
# For Ubuntu/Debian
|
|
82
|
+
$ sudo apt install ccache
|
|
90
83
|
|
|
91
|
-
|
|
84
|
+
# For Arch
|
|
85
|
+
$ sudo pacman -S ccache
|
|
92
86
|
|
|
93
|
-
|
|
94
|
-
|
|
87
|
+
# For Fedora
|
|
88
|
+
$ sudo dnf install ccache
|
|
95
89
|
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
4. Scroll to "Access keys" and create a new access key.
|
|
100
|
-
5. Run `aws configure` in your terminal and provide the access key ID and secret access key when prompted.
|
|
101
|
-
|
|
102
|
-
</details>
|
|
103
|
-
|
|
104
|
-
<details>
|
|
105
|
-
<summary>Common Issues You May Encounter</summary>
|
|
106
|
-
|
|
107
|
-
- To confirm that the cache is being used, you can use the `sccache --show-stats` command right after a build. This will expose very useful statistics, including cache hits/misses.
|
|
108
|
-
- If you have multiple AWS profiles configured, ensure that the correct profile is set in the `AWS_PROFILE` environment variable.
|
|
109
|
-
- `sccache` follows a server-client model. If you run into weird issues where `sccache` refuses to use S3, even though you have AWS credentials configured, try killing any running `sccache` servers with `sccache --stop-server` and then re-running the build.
|
|
90
|
+
# For openSUSE
|
|
91
|
+
$ sudo zypper install ccache
|
|
92
|
+
```
|
|
110
93
|
|
|
111
|
-
|
|
94
|
+
Our build scripts will automatically detect and use `ccache` if available. You can check cache statistics with `ccache --show-stats`.
|
|
112
95
|
|
|
113
96
|
## Install LLVM
|
|
114
97
|
|
package/package.json
CHANGED