このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン前のリビジョン次のリビジョン | 前のリビジョン | ||
50_dialy:2025:03:14 [2025/03/15 04:59] – matsui | 50_dialy:2025:03:14 [2025/03/15 11:39] (現在) – matsui | ||
---|---|---|---|
行 1: | 行 1: | ||
- | ====== 2025.03.14 Zed Editor ====== | + | ====== 2025.03.14 Zed Editor |
Zed EditorをWindows用にビルド | Zed EditorをWindows用にビルド | ||
行 61: | 行 61: | ||
< | < | ||
git clone https:// | git clone https:// | ||
+ | </ | ||
+ | |||
+ | ==== rust-toolchain.toml修正 ==== | ||
+ | |||
+ | < | ||
+ | targets = [ | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | ] | ||
+ | |||
+ | ↓ | ||
+ | |||
+ | targets = [ " | ||
</ | </ | ||
行 68: | 行 85: | ||
cd zed | cd zed | ||
rustup override set stable-x86_64-pc-windows-msvc | rustup override set stable-x86_64-pc-windows-msvc | ||
- | cargo build --release | + | cargo build --release |
</ | </ | ||
+ | ===== 6.起動 ===== | ||
+ | |||
+ | |||
+ | コンパイル完了後、下記にzed.exeができている。 | ||
+ | |||
+ | target\release\zed.exe | ||
行 158: | 行 181: | ||
=== 対応方法 === | === 対応方法 === | ||
[[#MSVC Spectre-mitigated Librariesも必要]] | [[#MSVC Spectre-mitigated Librariesも必要]] | ||
+ | |||
+ | ==== Out of memory ==== | ||
+ | |||
+ | < | ||
+ | | ||
+ | | ||
+ | | ||
+ | rustc-LLVM ERROR: out of memory | ||
+ | Allocation failed | ||
+ | error: could not compile `editor` (lib) | ||
+ | </ | ||
+ | |||
+ | === 対応方法 === | ||
+ | |||
+ | 並列実行の制限 | ||
+ | < | ||
+ | set CARGO_BUILD_JOBS=1 | ||
+ | </ | ||
+ | |||
+ | これで再buildしてみる。 | ||
+ | |||
+ | |||
{{tag> | {{tag> |