Skip to content

Commit

Permalink
release
Browse files Browse the repository at this point in the history
  • Loading branch information
dzmitry-lahoda committed Apr 22, 2023
1 parent fc5e90a commit 9f0325a
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions code/runtimes.nix
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,8 @@
+ pkgs.lib.strings.optionalString (features != "")
(" --features=${features}");
# From parity/wasm-builder
#ASD
RUSTFLAGS =
"-C target-cpu=mvp -C target-feature=-sign-ext -C link-arg=--export-table -Clink-arg=--export=__heap_base -C link-arg=--import-memory";
#"-C link-arg=--export-table -C link-arg=--export=__heap_base -C link-arg=--import-memory";
});

# Derive an optimized wasm runtime from a prebuilt one, garbage collection + compression
Expand All @@ -59,7 +57,6 @@
nativeBuildInputs = [ pkgs.binaryen ];
installPhase = ''
mkdir --parents $out/lib
#ASD
# https://github.com/paritytech/substrate/blob/30cb4d10b3118d1b3aa5b2ae7fa8429b2c4f28de/utils/wasm-builder/src/wasm_project.rs#L694
wasm-opt ${runtime}/lib/${name}_runtime.wasm -o $out/lib/runtime.optimized.wasm -Os --strip-dwarf --debuginfo --mvp-features
${self'.packages.subwasm}/bin/subwasm compress $out/lib/runtime.optimized.wasm $out/lib/runtime.optimized.wasm
Expand Down

0 comments on commit 9f0325a

Please sign in to comment.