diff --git a/runtime/src/iree/builtins/musl/Makefile_wasm32.iree b/runtime/src/iree/builtins/musl/Makefile_wasm32.iree index 83a108904b98..869ed875d7a1 100644 --- a/runtime/src/iree/builtins/musl/Makefile_wasm32.iree +++ b/runtime/src/iree/builtins/musl/Makefile_wasm32.iree @@ -13,11 +13,15 @@ IREE_BASE_SRCS = $(addprefix $(srcdir)/, \ src/math/floorf.c \ src/math/fmaf.c \ src/math/fmodf.c \ + src/math/frexpf.c \ + src/math/ldexpf.c \ src/math/powf.c \ src/math/expf.c \ src/math/powf_data.c \ src/math/exp2f_data.c \ + src/math/rintf.c \ src/math/roundf.c \ + src/math/scalbnf.c \ src/math/__math_invalidf.c \ src/math/__math_oflowf.c \ src/math/__math_uflowf.c \ diff --git a/runtime/src/iree/builtins/musl/Makefile_wasm64.iree b/runtime/src/iree/builtins/musl/Makefile_wasm64.iree index 5790beb6bdc1..486d9ded1914 100644 --- a/runtime/src/iree/builtins/musl/Makefile_wasm64.iree +++ b/runtime/src/iree/builtins/musl/Makefile_wasm64.iree @@ -13,11 +13,15 @@ IREE_BASE_SRCS = $(addprefix $(srcdir)/, \ src/math/floorf.c \ src/math/fmaf.c \ src/math/fmodf.c \ + src/math/frexpf.c \ + src/math/ldexpf.c \ src/math/powf.c \ src/math/expf.c \ src/math/powf_data.c \ - src/math/roundf.c \ src/math/exp2f_data.c \ + src/math/rintf.c \ + src/math/roundf.c \ + src/math/scalbnf.c \ src/math/__math_invalidf.c \ src/math/__math_oflowf.c \ src/math/__math_uflowf.c \ diff --git a/runtime/src/iree/builtins/musl/bin/build.sh b/runtime/src/iree/builtins/musl/bin/build.sh index af982d0906c3..23782aa65901 100755 --- a/runtime/src/iree/builtins/musl/bin/build.sh +++ b/runtime/src/iree/builtins/musl/bin/build.sh @@ -51,7 +51,7 @@ function make_arch_bc { do # Run full LLVM optimizations. # TODO(benvanik): defer this? Some of these opts may not be portable/safe. - ${LLVM_OPT?} ${file} -O3 -S -opaque-pointers=0 -o ${file}.opt.ll + ${LLVM_OPT?} ${file} -O3 -S -o ${file}.opt.ll # Clang adds a bunch of bad attributes and host-specific information that we # don't want (so we get at least somewhat deterministic builds). @@ -64,13 +64,13 @@ function make_arch_bc { # Generate a binary bitcode file embedded into the compiler binary. # NOTE: we do this from stdin so that the filename on the user's system is not # embedded in the bitcode file (making it non-deterministic). - cat ${file}.opt.ll | ${LLVM_AS?} -opaque-pointers=0 -o=${file}.opt.ll.bc + cat ${file}.opt.ll | ${LLVM_AS?} -o ${file}.opt.ll.bc rm ${file}.opt.ll done rm ${ALL_LL_FILES} ALL_BC_FILES=`ls *.ll.bc` - ${LLVM_LINK?} -opaque-pointers=0 ${ALL_BC_FILES} -o ${FILE_BASENAME}.bc + ${LLVM_LINK?} ${ALL_BC_FILES} -o ${FILE_BASENAME}.bc rm ${ALL_BC_FILES} } diff --git a/runtime/src/iree/builtins/musl/bin/libmusl_wasm32_generic.bc b/runtime/src/iree/builtins/musl/bin/libmusl_wasm32_generic.bc index eed3ffe2abf1..8c81f49b073b 100644 Binary files a/runtime/src/iree/builtins/musl/bin/libmusl_wasm32_generic.bc and b/runtime/src/iree/builtins/musl/bin/libmusl_wasm32_generic.bc differ diff --git a/runtime/src/iree/builtins/musl/bin/libmusl_wasm64_generic.bc b/runtime/src/iree/builtins/musl/bin/libmusl_wasm64_generic.bc index 233a729ce425..0767285c835b 100644 Binary files a/runtime/src/iree/builtins/musl/bin/libmusl_wasm64_generic.bc and b/runtime/src/iree/builtins/musl/bin/libmusl_wasm64_generic.bc differ