WIP: try compiling helix-core for WASM

This commit is contained in:
Blaž Hrastnik 2022-03-27 11:15:24 +09:00
parent cb5b12725e
commit 649a17720a
No known key found for this signature in database
GPG Key ID: 1238B9C4AD889640
2 changed files with 2 additions and 1 deletions

View File

@ -57,7 +57,7 @@
env = prev.env ++ [ env = prev.env ++ [
{ name = "HELIX_RUNTIME"; eval = "$PWD/runtime"; } { name = "HELIX_RUNTIME"; eval = "$PWD/runtime"; }
{ name = "RUST_BACKTRACE"; value = "1"; } { name = "RUST_BACKTRACE"; value = "1"; }
{ name = "RUSTFLAGS"; value = "-C link-arg=-fuse-ld=lld -C target-cpu=native -Clink-arg=-Wl,--no-rosegment"; } # { name = "RUSTFLAGS"; value = "-C link-arg=-fuse-ld=lld -C target-cpu=native -Clink-arg=-Wl,--no-rosegment"; }
{ name = "LD_LIBRARY_PATH"; value = nixpkgs.lib.makeLibraryPath (with common.pkgs; [ wayland libxkbcommon libGL ]); } { name = "LD_LIBRARY_PATH"; value = nixpkgs.lib.makeLibraryPath (with common.pkgs; [ wayland libxkbcommon libGL ]); }
]; ];
}; };

View File

@ -1,3 +1,4 @@
[toolchain] [toolchain]
channel = "stable" channel = "stable"
components = ["rustfmt", "rust-src"] components = ["rustfmt", "rust-src"]
targets = [ "wasm32-unknown-unknown" ]