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
@@ -45,10 +45,10 @@ parts:
# the system LLD we've installed earlier.
case ${SNAPCRAFT_ARCH_TRIPLET} in \
aarch64-linux-gnu|arm-linux-gnueabihf|powerpc64-linux-gnu|s390x-linux-gnu) \
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 \
;; \
*) \
RUSTFLAGS="--cfg=web_sys_unstable_apis" wasm-pack build --target web --release plume-front \
wasm-pack build --target web --release plume-front \
;; \
esac