Move Rust flag for plume-front to .cargo/config.toml from env var

This commit is contained in:
Kitaiti Makoto
2021-02-13 22:53:09 +09:00
parent 77edc4849f
commit 94ccbd6190
5 changed files with 16 additions and 7 deletions
+2 -2
View File
@@ -21,7 +21,7 @@ EOF
if [ $ARCH == "aarch64" -o $ARCH == "armv71" ] ; then
export PATH=/opt/local/llvm/bin:${PATH}
cd /app
RUSTFLAGS="-C linker=lld --cfg=web_sys_unstable_apis" wasm-pack build --target web --release plume-front
RUSTFLAGS="-C linker=lld" wasm-pack build --target web --release plume-front
else
RUSTFLAGS="--cfg=web_sys_unstable_apis" wasm-pack build --target web --release plume-front
wasm-pack build --target web --release plume-front
fi
+1 -1
View File
@@ -9,7 +9,7 @@ pkg="$4"
build () {
features="$1"
cargo clean
RUSTFLAGS="--cfg=web_sys_unstable_apis" wasm-pack build --target web --release plume-front
wasm-pack build --target web --release plume-front
cargo build --release --no-default-features --features="${features}" --package=plume-cli
cargo build --release --no-default-features --features="${features}"
./script/generate_artifact.sh