diff options
Diffstat (limited to 'testing/rust/APKBUILD')
-rw-r--r-- | testing/rust/APKBUILD | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/testing/rust/APKBUILD b/testing/rust/APKBUILD index 7655f2174a..0ac72d8d4b 100644 --- a/testing/rust/APKBUILD +++ b/testing/rust/APKBUILD @@ -62,8 +62,8 @@ prepare() { # invoking make. sed -i /LD_LIBRARY_PATH/d src/bootstrap/bootstrap.py - # Remove bundled dependency - rm -Rf src/llvm/ + # Remove bundled dependencies. + rm -Rf src/llvm/ src/jemalloc/ # Prepare our stage0 for bootstrapping. mkdir -p "$_stage0dir" @@ -76,6 +76,9 @@ prepare() { build() { cd "$builddir" + # jemalloc is disabled, because it increases size of statically linked + # binaries produced by rustc (stripped hello_world 186 kiB vs. 358 kiB) + # for only tiny performance boost (even negative in some tests). ./configure \ --enable-rustbuild \ --build="$_ctarget" \ @@ -89,6 +92,7 @@ build() { --musl-root="/usr" \ --enable-vendor \ --enable-llvm-link-shared \ + --disable-jemalloc \ --disable-docs # Set LD_LIBRARY_PATH, so rustc in stage0 can find correct libs. |