Move Rust flag for plume-front to .cargo/config.toml from env var
This commit is contained in:
@@ -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
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user