Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions runtime/src/iree/builtins/musl/Makefile_wasm32.iree
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down
6 changes: 5 additions & 1 deletion runtime/src/iree/builtins/musl/Makefile_wasm64.iree
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down
6 changes: 3 additions & 3 deletions runtime/src/iree/builtins/musl/bin/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand All @@ -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}
}

Expand Down
Binary file modified runtime/src/iree/builtins/musl/bin/libmusl_wasm32_generic.bc
Binary file not shown.
Binary file modified runtime/src/iree/builtins/musl/bin/libmusl_wasm64_generic.bc
Binary file not shown.
Loading