Skip to content
This repository has been archived by the owner on Sep 12, 2023. It is now read-only.

Commit

Permalink
only build to wasm32-unknown-unknown for deno
Browse files Browse the repository at this point in the history
  • Loading branch information
wangshishuo committed Jun 10, 2020
1 parent bcc47b8 commit 11f838e
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ssvmup"
version = "0.1.10"
version = "0.1.11"
authors = ["wangshishuo"]
repository = "https://github.com/second-state/ssvmup.git"
license = "MIT/Apache-2.0"
Expand Down
4 changes: 2 additions & 2 deletions installer/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

set -u

UPDATE_ROOT="https://github.com/second-state/ssvmup/releases/download/v0.1.10"
UPDATE_ROOT="https://github.com/second-state/ssvmup/releases/download/v0.1.11"

main() {
downloader --check
Expand Down Expand Up @@ -43,7 +43,7 @@ main() {
which rustup > /dev/null 2>&1
need_ok "failed to find Rust installation, is rustup installed?"
local _rustup=`which rustup`
local _tardir="ssvmup-v0.1.10-${_arch}"
local _tardir="ssvmup-v0.1.11-${_arch}"
local _url="$UPDATE_ROOT/${_tardir}.tar.gz"
local _dir="$(mktemp -d 2>/dev/null || ensure mktemp -d -t ssvmup)"
local _file="$_dir/input.tar.gz"
Expand Down
2 changes: 1 addition & 1 deletion npm/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ssvmup",
"version": "0.1.10",
"version": "0.1.11",
"description": "SSVM ready tool",
"main": "binary.js",
"scripts": {
Expand Down
6 changes: 5 additions & 1 deletion src/command/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -140,11 +140,15 @@ impl Build {
_ => bail!("Can only supply one of the --dev, --release, or --profiling flags"),
};

let target = match build_opts.nowasi {
let mut target = match build_opts.nowasi {
true => "wasm32-unknown-unknown",
false => "wasm32-wasi",
};

if build_opts.target == "deno" {
target = "wasm32-unknown-unknown";
}

Ok(Build {
crate_path,
crate_data,
Expand Down

0 comments on commit 11f838e

Please sign in to comment.