Skip to content

Commit

Permalink
crux-mir translate_libs.sh: Document dlmalloc more
Browse files Browse the repository at this point in the history
  • Loading branch information
qsctr committed Dec 7, 2023
1 parent 90dd9c1 commit 6e35c1a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crux-mir/translate_libs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ echo 'Building addr2line...'
translate lib/addr2line/src/lib.rs --crate-name addr2line --cfg 'feature="alloc"' --cfg 'feature="compiler_builtins"' --cfg 'feature="core"' --cfg 'feature="rustc-dep-of-std"' --extern "compiler_builtins=${RLIBS}/libcompiler_builtins.rlib" --extern "gimli=${RLIBS}/libgimli.rlib" --extern "alloc=${RLIBS}/liballoc.rlib" --extern "core=${RLIBS}/libcore.rlib"

# For wasm32 targets which are not emscripten, std depends on dlmalloc because
# the runtime does not provide an allocator. See lib/std/Cargo.toml.
# the runtime does not provide an allocator. See lib/std/Cargo.toml and
# lib/std/src/sys/wasm/alloc.rs
if [ "$TARGET_ARCH" = "wasm32" ] && [ "$TARGET_OS" != "emscripten" ]; then
USE_DLMALLOC=yes
echo 'Building dlmalloc...'
Expand Down

0 comments on commit 6e35c1a

Please sign in to comment.