Skip to content

Commit a593d8f

Browse files
committed
pass correct flags to jemalloc for cross-compiling
1 parent b8cf2f8 commit a593d8f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mk/rt.mk

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,8 @@ $$(LIBUV_LIB_$(1)_$(2)): $$(LIBUV_DEPS)
211211
endif
212212

213213
$$(JEMALLOC_LIB_$(1)_$(2)):
214-
cd $$(CFG_BUILD_DIR)/rt/$(1)/stage$(2)/jemalloc; $(S)src/rt/jemalloc/configure --disable-experimental
214+
cd $$(CFG_BUILD_DIR)/rt/$(1)/stage$(2)/jemalloc; $(S)src/rt/jemalloc/configure \
215+
--disable-experimental --build=$(CFG_BUILD_TRIPLE) --host=$(1)
215216
$$(Q)$$(MAKE) -C $$(CFG_BUILD_DIR)/rt/$(1)/stage$(2)/jemalloc
216217

217218
# These could go in rt.mk or rustllvm.mk, they're needed for both.

0 commit comments

Comments
 (0)