Skip to content

Commit

Permalink
Add comment about features
Browse files Browse the repository at this point in the history
  • Loading branch information
sffc authored Oct 10, 2023
1 parent 89ed552 commit 32bb13a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ffi/capi/js/examples/tinywasm/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ target/wasm32-unknown-unknown/release/icu_capi_cdylib.wasm: FORCE
rustup toolchain install ${ICU4X_NIGHTLY_TOOLCHAIN}
rustup component add rust-src --toolchain ${ICU4X_NIGHTLY_TOOLCHAIN}
# Build the WASM library
# NOTE: the --features below only work within the workspace. Outside of the workspace, you should
# create your own cdylib crate that depends on icu_capi and enables the features you need.
RUSTFLAGS="-Cpanic=abort -Copt-level=s -C link-arg=-zstack-size=${WASM_STACK_SIZE} -Clinker-plugin-lto -Ccodegen-units=1 -C linker=${BASEDIR}/ld.py -C linker-flavor=wasm-ld" \
CARGO_TARGET_DIR="target" `# Special linker flags shouldn't overwrite the top-level target directory` \
cargo +${ICU4X_NIGHTLY_TOOLCHAIN} build \
Expand Down

0 comments on commit 32bb13a

Please sign in to comment.