Skip to content

Commit

Permalink
_> emscripten
Browse files Browse the repository at this point in the history
  • Loading branch information
Manishearth committed Aug 21, 2021
1 parent 2fc798e commit dcfb108
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ffi/cpp/examples/fixeddecimal_wasm/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ $(ALL_HEADERS):



../../../../target/wasm32-unknown-unknown/debug/libicu_capi.a: $(ALL_RUST)
cargo +nightly build -p icu_capi --target wasm32-unknown-unknown --features malloc
../../../../target/wasm32-unknown-emscripten/debug/libicu_capi.a: $(ALL_RUST)
cargo +nightly build -p icu_capi --target wasm32-unknown-emscripten -Z build-std=std,panic_abort -Z build-std-features=panic_immediate_abort

# Currently this doesn't run successfully, however it's the status quo of compiling ICU4X in C++ to WASM
main.html: ../../../../target/wasm32-unknown-unknown/debug/libicu_capi.a $(ALL_HEADERS) test.cpp
emcc -std=c++17 test.cpp ../../../../target/wasm32-unknown-unknown/debug/libicu_capi.a -ldl -lpthread -lm -g -o main.html --emrun -sWASM=1
main.html: ../../../../target/wasm32-unknown-emscripten/debug/libicu_capi.a $(ALL_HEADERS) test.cpp
emcc -std=c++17 test.cpp ../../../../target/wasm32-unknown-emscripten/debug/libicu_capi.a -ldl -lpthread -lm -g -o main.html --emrun -sWASM=1

build: main.html

0 comments on commit dcfb108

Please sign in to comment.