Skip to content

Commit dd3f950

Browse files
committed
---
yaml --- r: 152461 b: refs/heads/try2 c: 145e415 h: refs/heads/master i: 152459: af1514c v: v3
1 parent aa3c325 commit dd3f950

File tree

3 files changed

+19
-3
lines changed

3 files changed

+19
-3
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ refs/heads/snap-stage3: 78a7676898d9f80ab540c6df5d4c9ce35bb50463
55
refs/heads/try: 519addf6277dbafccbb4159db4b710c37eaa2ec5
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8-
refs/heads/try2: fce98e5262f5426e80165ff7195fb1548c861f6b
8+
refs/heads/try2: 145e415fabd4532f34537d82a4612e5feeccf11c
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try2/configure

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -425,6 +425,7 @@ opt verify-install 1 "verify installed binaries work"
425425
valopt prefix "/usr/local" "set installation prefix"
426426
valopt local-rust-root "/usr/local" "set prefix for local rust binary"
427427
valopt llvm-root "" "set LLVM root"
428+
valopt jemalloc-root "" "set jemalloc root"
428429
valopt android-cross-path "/opt/ndk_standalone" "Android NDK standalone path"
429430
valopt mingw32-cross-path "" "MinGW32 cross compiler path"
430431

@@ -1198,6 +1199,7 @@ putvar CFG_ANDROID_CROSS_PATH
11981199
putvar CFG_MINGW32_CROSS_PATH
11991200
putvar CFG_MANDIR
12001201
putvar CFG_DISABLE_INJECT_STD_VERSION
1202+
putvar CFG_JEMALLOC_ROOT
12011203

12021204
# Avoid spurious warnings from clang by feeding it original source on
12031205
# ccache-miss rather than preprocessed input.

branches/try2/mk/rt.mk

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,8 +253,9 @@ else
253253
endif
254254
JEMALLOC_LIB_$(1) := $$(RT_OUTPUT_DIR_$(1))/$$(JEMALLOC_NAME_$(1))
255255
JEMALLOC_BUILD_DIR_$(1) := $$(RT_OUTPUT_DIR_$(1))/jemalloc
256+
JEMALLOC_LOCAL_$(1) := $$(JEMALLOC_BUILD_DIR_$(1))/lib/$$(JEMALLOC_REAL_NAME_$(1))
256257

257-
$$(JEMALLOC_LIB_$(1)): $$(JEMALLOC_DEPS) $$(MKFILE_DEPS)
258+
$$(JEMALLOC_LOCAL_$(1)): $$(JEMALLOC_DEPS) $$(MKFILE_DEPS)
258259
@$$(call E, make: jemalloc)
259260
cd "$$(JEMALLOC_BUILD_DIR_$(1))"; "$(S)src/jemalloc/configure" \
260261
$$(JEMALLOC_ARGS_$(1)) --enable-cc-silence --with-jemalloc-prefix=je_ \
@@ -265,7 +266,20 @@ $$(JEMALLOC_LIB_$(1)): $$(JEMALLOC_DEPS) $$(MKFILE_DEPS)
265266
CPPFLAGS="-I $(S)src/rt/" \
266267
EXTRA_CFLAGS="$$(CFG_CFLAGS_$(1)) -g1"
267268
$$(Q)$$(MAKE) -C "$$(JEMALLOC_BUILD_DIR_$(1))" build_lib_static
268-
$$(Q)cp $$(JEMALLOC_BUILD_DIR_$(1))/lib/$$(JEMALLOC_REAL_NAME_$(1)) $$(JEMALLOC_LIB_$(1))
269+
270+
ifeq ($(1),$$(CFG_BUILD))
271+
ifneq ($$(CFG_JEMALLOC_ROOT),)
272+
$$(JEMALLOC_LIB_$(1)): $$(CFG_JEMALLOC_ROOT)/libjemalloc_pic.a
273+
@$$(call E, copy: jemalloc)
274+
$$(Q)cp $$< $$@
275+
else
276+
$$(JEMALLOC_LIB_$(1)):
277+
$$(Q)cp $$< $$@
278+
endif
279+
else
280+
$$(JEMALLOC_LIB_$(1)):
281+
$$(Q)cp $$< $$@
282+
endif
269283

270284
################################################################################
271285
# compiler-rt

0 commit comments

Comments
 (0)