Skip to content

Commit adcd40b

Browse files
committed
---
yaml --- r: 79803 b: refs/heads/try c: dd5c737 h: refs/heads/master i: 79801: b0721c1 79799: ced2a5a v: v3
1 parent f39b951 commit adcd40b

File tree

137 files changed

+4602
-1700
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

137 files changed

+4602
-1700
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
refs/heads/master: ba9fa89bfb4aae53db93e9ecac31807af96356fc
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 54ae2800ffb30513f89ce13d27ac3c8d095d98ac
5-
refs/heads/try: e0e5523552c5b7ae6c7175c5e7aeefbac5fd0ba1
5+
refs/heads/try: dd5c7379e9b8f3fe6df95f3ff43ca955b6bba485
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c

branches/try/.gitmodules

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,8 @@
44
branch = master
55
[submodule "src/libuv"]
66
path = src/libuv
7-
url = https://github.com/brson/libuv.git
7+
url = https://github.com/alexcrichton/libuv.git
88
branch = master
9+
[submodule "src/gyp"]
10+
path = src/gyp
11+
url = https://git.chromium.org/external/gyp.git

branches/try/Makefile.in

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -574,19 +574,10 @@ ALL_TARGET_RULES = $(foreach target,$(CFG_TARGET_TRIPLES), \
574574
$(foreach host,$(CFG_HOST_TRIPLES), \
575575
all-target-$(target)-host-$(host)))
576576

577-
all: rustllvm/llvm-auto-clean-stamp \
578-
$(ALL_TARGET_RULES) $(GENERATED) docs
577+
all: $(ALL_TARGET_RULES) $(GENERATED) docs
579578

580579
endif
581580

582-
# This is used to independently force an LLVM clean rebuild
583-
# when we changed something not otherwise captured by builtin
584-
# dependencies. In these cases, commit a change that touches
585-
# the stamp in the source dir.
586-
rustllvm/llvm-auto-clean-stamp: $(S)src/rustllvm/llvm-auto-clean-trigger
587-
$(Q)$(MAKE) clean-llvm
588-
touch $@
589-
590581

591582
######################################################################
592583
# Re-configuration

branches/try/configure

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -664,32 +664,29 @@ do
664664
make_dir $i
665665
done
666666

667-
make_dir llvm
668667
for t in $CFG_HOST_TRIPLES
669668
do
670-
make_dir llvm/$t
669+
make_dir $t/llvm
671670
done
672671

673-
make_dir rustllvm
674672
for t in $CFG_HOST_TRIPLES
675673
do
676-
make_dir rustllvm/$t
674+
make_dir $t/rustllvm
677675
done
678676

679-
make_dir rt
680677
for t in $CFG_TARGET_TRIPLES
681678
do
682-
make_dir rt/$t
679+
make_dir $t/rt
683680
for s in 0 1 2 3
684681
do
685-
make_dir rt/$t/stage$s
682+
make_dir $t/rt/stage$s
686683
for i in \
687684
isaac linenoise sync test \
688685
arch/i386 arch/x86_64 arch/arm arch/mips \
689686
libuv libuv/src/ares libuv/src/eio libuv/src/ev \
690687
jemalloc
691688
do
692-
make_dir rt/$t/stage$s/$i
689+
make_dir $t/rt/stage$s/$i
693690
done
694691
done
695692
done
@@ -791,7 +788,7 @@ do
791788

792789
if [ -z $CFG_LLVM_ROOT ]
793790
then
794-
LLVM_BUILD_DIR=${CFG_BUILD_DIR}llvm/$t
791+
LLVM_BUILD_DIR=${CFG_BUILD_DIR}$t/llvm
795792
if [ ! -z "$CFG_DISABLE_OPTIMIZE_LLVM" ]
796793
then
797794
LLVM_DBG_OPTS="--enable-debug-symbols --disable-optimized"
@@ -826,7 +823,7 @@ do
826823
index2="${CFG_SRC_DIR}src/llvm/.git/index"
827824
for index in ${index1} ${index2}
828825
do
829-
config_status="${CFG_BUILD_DIR}llvm/$t/config.status"
826+
config_status="${LLVM_BUILD_DIR}/config.status"
830827
if test -e ${index} -a \
831828
-e ${config_status} -a \
832829
${config_status} -nt ${index}

branches/try/doc/rust.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3385,9 +3385,11 @@ The path to a module consists of the crate name, any parent modules,
33853385
then the module itself, all separated by double colons (`::`). The
33863386
optional log level can be appended to the module path with an equals
33873387
sign (`=`) followed by the log level, from 1 to 4, inclusive. Level 1
3388-
is the error level, 2 is warning, 3 info, and 4 debug. Any logs
3389-
less than or equal to the specified level will be output. If not
3390-
specified then log level 4 is assumed.
3388+
is the error level, 2 is warning, 3 info, and 4 debug. You can also
3389+
use the symbolic constants `error`, `warn`, `info`, and `debug`. Any
3390+
logs less than or equal to the specified level will be output. If not
3391+
specified then log level 4 is assumed. However, debug messages are
3392+
only available if `--cfg=debug` is passed to `rustc`.
33913393

33923394
As an example, to see all the logs generated by the compiler, you would set
33933395
`RUST_LOG` to `rustc`, which is the crate name (as specified in its `link`

branches/try/mk/clean.mk

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,22 +33,24 @@ clean: clean-misc $(CLEAN_STAGE_RULES)
3333

3434
clean-misc:
3535
@$(call E, cleaning)
36-
$(Q)find rustllvm rt $(CFG_BUILD_TRIPLE)/test \
36+
$(Q)find $(CFG_BUILD_TRIPLE)/rustllvm \
37+
$(CFG_BUILD_TRIPLE)/rt \
38+
$(CFG_BUILD_TRIPLE)/test \
3739
-name '*.[odasS]' -o \
3840
-name '*.so' -o \
3941
-name '*.dylib' -o \
4042
-name '*.dll' -o \
4143
-name '*.def' -o \
4244
-name '*.bc' \
4345
| xargs rm -f
44-
$(Q)find rustllvm rt $(CFG_BUILD_TRIPLE)\
46+
$(Q)find $(CFG_BUILD_TRIPLE)\
4547
-name '*.dSYM' \
4648
| xargs rm -Rf
4749
$(Q)rm -f $(RUNTIME_OBJS) $(RUNTIME_DEF)
4850
$(Q)rm -f $(RUSTLLVM_LIB_OBJS) $(RUSTLLVM_OBJS_OBJS) $(RUSTLLVM_DEF)
4951
$(Q)rm -Rf $(DOCS)
5052
$(Q)rm -Rf $(GENERATED)
51-
$(Q)rm -f tmp/*
53+
$(Q)rm -Rf tmp/*
5254
$(Q)rm -Rf rust-stage0-*.tar.bz2 $(PKG_NAME)-*.tar.gz dist
5355
$(Q)rm -Rf $(foreach ext, \
5456
html aux cp fn ky log pdf pg toc tp vr cps, \

branches/try/mk/dist.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ PKG_ICO = $(S)src/etc/pkg/rust-logo.ico
1212
PKG_EXE = $(PKG_DIR)-install.exe
1313
endif
1414

15-
PKG_GITMODULES := $(S)src/libuv $(S)src/llvm
15+
PKG_GITMODULES := $(S)src/libuv $(S)src/llvm $(S)src/gyp
1616

1717
PKG_FILES := \
1818
$(S)COPYRIGHT \

branches/try/mk/llvm.mk

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,22 @@ define DEF_LLVM_RULES
2424
# If CFG_LLVM_ROOT is defined then we don't build LLVM ourselves
2525
ifeq ($(CFG_LLVM_ROOT),)
2626

27-
$$(LLVM_CONFIG_$(1)): $$(LLVM_DEPS)
27+
LLVM_STAMP_$(1) = $$(CFG_LLVM_BUILD_DIR_$(1))/llvm-auto-clean-stamp
28+
29+
$$(LLVM_CONFIG_$(1)): $$(LLVM_DEPS) $$(LLVM_STAMP_$(1))
2830
@$$(call E, make: llvm)
2931
$$(Q)$$(MAKE) -C $$(CFG_LLVM_BUILD_DIR_$(1)) $$(CFG_LLVM_BUILD_ENV)
3032
$$(Q)touch $$(LLVM_CONFIG_$(1))
3133
endif
3234

35+
# This is used to independently force an LLVM clean rebuild
36+
# when we changed something not otherwise captured by builtin
37+
# dependencies. In these cases, commit a change that touches
38+
# the stamp in the source dir.
39+
$$(LLVM_STAMP_$(1)): $(S)src/rustllvm/llvm-auto-clean-trigger
40+
$(Q)$(MAKE) clean-llvm
41+
touch $$@
42+
3343
endef
3444

3545
$(foreach host,$(CFG_HOST_TRIPLES), \

branches/try/mk/rt.mk

Lines changed: 57 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -91,61 +91,64 @@ RUNTIME_S_$(1)_$(2) := rt/arch/$$(HOST_$(1))/_context.S \
9191
rt/arch/$$(HOST_$(1))/ccall.S \
9292
rt/arch/$$(HOST_$(1))/record_sp.S
9393

94+
RT_OUTPUT_DIR_$(1) := $(1)/rt
95+
RT_BUILD_DIR_$(1)_$(2) := $$(RT_OUTPUT_DIR_$(1))/stage$(2)
96+
9497
ifeq ($$(CFG_WINDOWSY_$(1)), 1)
9598
LIBUV_OSTYPE_$(1)_$(2) := win
96-
LIBUV_LIB_$(1)_$(2) := rt/$(1)/stage$(2)/libuv/libuv.a
97-
JEMALLOC_LIB_$(1)_$(2) := rt/$(1)/stage$(2)/jemalloc/lib/jemalloc.lib
99+
LIBUV_LIB_$(1)_$(2) := $$(RT_BUILD_DIR_$(1)_$(2))/libuv/libuv.a
100+
JEMALLOC_LIB_$(1)_$(2) := $$(RT_BUILD_DIR_$(1)_$(2))/jemalloc/lib/jemalloc.lib
98101
else ifeq ($(OSTYPE_$(1)), apple-darwin)
99102
LIBUV_OSTYPE_$(1)_$(2) := mac
100-
LIBUV_LIB_$(1)_$(2) := rt/$(1)/stage$(2)/libuv/libuv.a
101-
JEMALLOC_LIB_$(1)_$(2) := rt/$(1)/stage$(2)/jemalloc/lib/libjemalloc_pic.a
103+
LIBUV_LIB_$(1)_$(2) := $$(RT_BUILD_DIR_$(1)_$(2))/libuv/libuv.a
104+
JEMALLOC_LIB_$(1)_$(2) := $$(RT_BUILD_DIR_$(1)_$(2))/jemalloc/lib/libjemalloc_pic.a
102105
else ifeq ($(OSTYPE_$(1)), unknown-freebsd)
103106
LIBUV_OSTYPE_$(1)_$(2) := unix/freebsd
104-
LIBUV_LIB_$(1)_$(2) := rt/$(1)/stage$(2)/libuv/libuv.a
105-
JEMALLOC_LIB_$(1)_$(2) := rt/$(1)/stage$(2)/jemalloc/lib/libjemalloc_pic.a
107+
LIBUV_LIB_$(1)_$(2) := $$(RT_BUILD_DIR_$(1)_$(2))/libuv/libuv.a
108+
JEMALLOC_LIB_$(1)_$(2) := $$(RT_BUILD_DIR_$(1)_$(2))/jemalloc/lib/libjemalloc_pic.a
106109
else ifeq ($(OSTYPE_$(1)), linux-androideabi)
107110
LIBUV_OSTYPE_$(1)_$(2) := unix/android
108-
LIBUV_LIB_$(1)_$(2) := rt/$(1)/stage$(2)/libuv/libuv.a
109-
JEMALLOC_LIB_$(1)_$(2) := rt/$(1)/stage$(2)/jemalloc/lib/libjemalloc_pic.a
111+
LIBUV_LIB_$(1)_$(2) := $$(RT_BUILD_DIR_$(1)_$(2))/libuv/libuv.a
112+
JEMALLOC_LIB_$(1)_$(2) := $$(RT_BUILD_DIR_$(1)_$(2))/jemalloc/lib/libjemalloc_pic.a
110113
else
111114
LIBUV_OSTYPE_$(1)_$(2) := unix/linux
112-
LIBUV_LIB_$(1)_$(2) := rt/$(1)/stage$(2)/libuv/libuv.a
113-
JEMALLOC_LIB_$(1)_$(2) := rt/$(1)/stage$(2)/jemalloc/lib/libjemalloc_pic.a
115+
LIBUV_LIB_$(1)_$(2) := $$(RT_BUILD_DIR_$(1)_$(2))/libuv/libuv.a
116+
JEMALLOC_LIB_$(1)_$(2) := $$(RT_BUILD_DIR_$(1)_$(2))/jemalloc/lib/libjemalloc_pic.a
114117
endif
115118

116-
RUNTIME_DEF_$(1)_$(2) := rt/rustrt$(CFG_DEF_SUFFIX_$(1))
119+
RUNTIME_DEF_$(1)_$(2) := $$(RT_OUTPUT_DIR_$(1))/rustrt$$(CFG_DEF_SUFFIX_$(1))
117120
RUNTIME_INCS_$(1)_$(2) := -I $$(S)src/rt -I $$(S)src/rt/isaac -I $$(S)src/rt/uthash \
118121
-I $$(S)src/rt/arch/$$(HOST_$(1)) \
119122
-I $$(S)src/rt/linenoise \
120123
-I $$(S)src/libuv/include
121-
RUNTIME_OBJS_$(1)_$(2) := $$(RUNTIME_CXXS_$(1)_$(2):rt/%.cpp=rt/$(1)/stage$(2)/%.o) \
122-
$$(RUNTIME_CS_$(1)_$(2):rt/%.c=rt/$(1)/stage$(2)/%.o) \
123-
$$(RUNTIME_S_$(1)_$(2):rt/%.S=rt/$(1)/stage$(2)/%.o)
124+
RUNTIME_OBJS_$(1)_$(2) := $$(RUNTIME_CXXS_$(1)_$(2):rt/%.cpp=$$(RT_BUILD_DIR_$(1)_$(2))/%.o) \
125+
$$(RUNTIME_CS_$(1)_$(2):rt/%.c=$$(RT_BUILD_DIR_$(1)_$(2))/%.o) \
126+
$$(RUNTIME_S_$(1)_$(2):rt/%.S=$$(RT_BUILD_DIR_$(1)_$(2))/%.o)
124127
ALL_OBJ_FILES += $$(RUNTIME_OBJS_$(1)_$(2))
125128

126-
MORESTACK_OBJ_$(1)_$(2) := rt/$(1)/stage$(2)/arch/$$(HOST_$(1))/morestack.o
129+
MORESTACK_OBJ_$(1)_$(2) := $$(RT_BUILD_DIR_$(1)_$(2))/arch/$$(HOST_$(1))/morestack.o
127130
ALL_OBJ_FILES += $$(MORESTACK_OBJS_$(1)_$(2))
128131

129-
rt/$(1)/stage$(2)/%.o: rt/%.cpp $$(MKFILE_DEPS)
132+
$$(RT_BUILD_DIR_$(1)_$(2))/%.o: rt/%.cpp $$(MKFILE_DEPS)
130133
@$$(call E, compile: $$@)
131134
$$(Q)$$(call CFG_COMPILE_CXX_$(1), $$@, $$(RUNTIME_INCS_$(1)_$(2)) \
132135
$$(SNAP_DEFINES) $$(RUNTIME_CXXFLAGS_$(1)_$(2))) $$<
133136

134-
rt/$(1)/stage$(2)/%.o: rt/%.c $$(MKFILE_DEPS)
137+
$$(RT_BUILD_DIR_$(1)_$(2))/%.o: rt/%.c $$(MKFILE_DEPS)
135138
@$$(call E, compile: $$@)
136139
$$(Q)$$(call CFG_COMPILE_C_$(1), $$@, $$(RUNTIME_INCS_$(1)_$(2)) \
137140
$$(SNAP_DEFINES) $$(RUNTIME_CFLAGS_$(1)_$(2))) $$<
138141

139-
rt/$(1)/stage$(2)/%.o: rt/%.S $$(MKFILE_DEPS) \
142+
$$(RT_BUILD_DIR_$(1)_$(2))/%.o: rt/%.S $$(MKFILE_DEPS) \
140143
$$(LLVM_CONFIG_$$(CFG_BUILD_TRIPLE))
141144
@$$(call E, compile: $$@)
142145
$$(Q)$$(call CFG_ASSEMBLE_$(1),$$@,$$<)
143146

144-
rt/$(1)/stage$(2)/arch/$$(HOST_$(1))/libmorestack.a: $$(MORESTACK_OBJ_$(1)_$(2))
147+
$$(RT_BUILD_DIR_$(1)_$(2))/arch/$$(HOST_$(1))/libmorestack.a: $$(MORESTACK_OBJ_$(1)_$(2))
145148
@$$(call E, link: $$@)
146149
$$(Q)$(AR_$(1)) rcs $$@ $$<
147150

148-
rt/$(1)/stage$(2)/$(CFG_RUNTIME_$(1)): $$(RUNTIME_OBJS_$(1)_$(2)) $$(MKFILE_DEPS) \
151+
$$(RT_BUILD_DIR_$(1)_$(2))/$(CFG_RUNTIME_$(1)): $$(RUNTIME_OBJS_$(1)_$(2)) $$(MKFILE_DEPS) \
149152
$$(RUNTIME_DEF_$(1)_$(2)) $$(LIBUV_LIB_$(1)_$(2)) $$(JEMALLOC_LIB_$(1)_$(2))
150153
@$$(call E, link: $$@)
151154
$$(Q)$$(call CFG_LINK_CXX_$(1),$$@, $$(RUNTIME_OBJS_$(1)_$(2)) \
@@ -167,88 +170,103 @@ LIBUV_DEPS := $$(wildcard \
167170
$$(S)src/libuv/*/*/*/*)
168171
endif
169172

173+
LIBUV_MAKEFILE_$(1)_$(2) := $$(CFG_BUILD_DIR)$$(RT_BUILD_DIR_$(1)_$(2))/libuv/Makefile
174+
LIBUV_NO_LOAD = run-benchmarks.target.mk run-tests.target.mk \
175+
uv_dtrace_header.target.mk uv_dtrace_provider.target.mk
176+
177+
export PYTHONPATH := $(PYTHONPATH):$$(S)src/gyp/pylib
178+
179+
$$(LIBUV_MAKEFILE_$(1)_$(2)):
180+
(cd $(S)src/libuv/ && \
181+
$$(CFG_PYTHON) ./gyp_uv -f make -Dtarget_arch=$$(LIBUV_ARCH_$(1)) -D ninja \
182+
-Goutput_dir=$$(@D) --generator-output $$(@D))
183+
170184
# XXX: Shouldn't need platform-specific conditions here
171185
ifdef CFG_WINDOWSY_$(1)
172186
$$(LIBUV_LIB_$(1)_$(2)): $$(LIBUV_DEPS)
173-
$$(Q)$$(MAKE) -C $$(S)src/libuv/ \
174-
builddir_name="$$(CFG_BUILD_DIR)/rt/$(1)/stage$(2)/libuv" \
175-
OS=mingw \
187+
$$(Q)$$(MAKE) -C $$(S)src/libuv -f Makefile.mingw \
188+
CFLAGS="$$(CFG_GCCISH_CFLAGS) $$(LIBUV_FLAGS_$$(HOST_$(1))) $$(SNAP_DEFINES)" \
189+
AR="$$(AR_$(1))" \
176190
V=$$(VERBOSE)
191+
$$(Q)cp $$(S)src/libuv/libuv.a $$@
177192
else ifeq ($(OSTYPE_$(1)), linux-androideabi)
178-
$$(LIBUV_LIB_$(1)_$(2)): $$(LIBUV_DEPS)
179-
$$(Q)$$(MAKE) -C $$(S)src/libuv/ \
193+
$$(LIBUV_LIB_$(1)_$(2)): $$(LIBUV_DEPS) $$(LIBUV_MAKEFILE_$(1)_$(2))
194+
$$(Q)$$(MAKE) -C $$(@D) \
180195
CFLAGS="$$(CFG_GCCISH_CFLAGS) $$(LIBUV_FLAGS_$$(HOST_$(1))) $$(SNAP_DEFINES)" \
181196
LDFLAGS="$$(CFG_GCCISH_LINK_FLAGS) $$(LIBUV_FLAGS_$$(HOST_$(1)))" \
182197
CC="$$(CC_$(1))" \
183198
CXX="$$(CXX_$(1))" \
184199
LINK="$$(CXX_$(1))" \
185200
AR="$$(AR_$(1))" \
186201
PLATFORM=android \
187-
BUILDTYPE=Release \
188-
builddir_name="$$(CFG_BUILD_DIR)/rt/$(1)/stage$(2)/libuv" \
189202
host=android OS=linux \
203+
builddir="." \
204+
BUILDTYPE=Release \
205+
NO_LOAD="$$(LIBUV_NO_LOAD)" \
190206
V=$$(VERBOSE)
191207
else
192-
$$(LIBUV_LIB_$(1)_$(2)): $$(LIBUV_DEPS)
193-
$$(Q)$$(MAKE) -C $$(S)src/libuv/ \
208+
$$(LIBUV_LIB_$(1)_$(2)): $$(LIBUV_DEPS) $$(LIBUV_MAKEFILE_$(1)_$(2))
209+
$$(Q)$$(MAKE) -C $$(@D) \
194210
CFLAGS="$$(CFG_GCCISH_CFLAGS) $$(LIBUV_FLAGS_$$(HOST_$(1))) $$(SNAP_DEFINES)" \
195211
LDFLAGS="$$(CFG_GCCISH_LINK_FLAGS) $$(LIBUV_FLAGS_$$(HOST_$(1)))" \
196212
CC="$$(CC_$(1))" \
197213
CXX="$$(CXX_$(1))" \
198214
AR="$$(AR_$(1))" \
199-
builddir_name="$$(CFG_BUILD_DIR)/rt/$(1)/stage$(2)/libuv" \
215+
builddir="." \
216+
BUILDTYPE=Release \
217+
NO_LOAD="$$(LIBUV_NO_LOAD)" \
200218
V=$$(VERBOSE)
201219
endif
202220

203221
ifeq ($(OSTYPE_$(1)), linux-androideabi)
204222
$$(JEMALLOC_LIB_$(1)_$(2)):
205-
cd $$(CFG_BUILD_DIR)/rt/$(1)/stage$(2)/jemalloc; $(S)src/rt/jemalloc/configure \
223+
cd $$(RT_BUILD_DIR_$(1)_$(2))/jemalloc; $(S)src/rt/jemalloc/configure \
206224
--disable-experimental --build=$(CFG_BUILD_TRIPLE) --host=$(1) --disable-tls \
207225
EXTRA_CFLAGS="$$(CFG_GCCISH_CFLAGS) $$(LIBUV_FLAGS_$$(HOST_$(1))) $$(SNAP_DEFINES)" \
208226
LDFLAGS="$$(CFG_GCCISH_LINK_FLAGS) $$(LIBUV_FLAGS_$$(HOST_$(1)))" \
209227
CC="$$(CC_$(1))" \
210228
CXX="$$(CXX_$(1))" \
211229
AR="$$(AR_$(1))"
212-
$$(Q)$$(MAKE) -C $$(CFG_BUILD_DIR)/rt/$(1)/stage$(2)/jemalloc
230+
$$(Q)$$(MAKE) -C $$(RT_BUILD_DIR_$(1)_$(2))/jemalloc
213231
else
214232
$$(JEMALLOC_LIB_$(1)_$(2)):
215-
cd $$(CFG_BUILD_DIR)/rt/$(1)/stage$(2)/jemalloc; $(S)src/rt/jemalloc/configure \
233+
cd $$(RT_BUILD_DIR_$(1)_$(2))/jemalloc; $(S)src/rt/jemalloc/configure \
216234
--disable-experimental --build=$(CFG_BUILD_TRIPLE) --host=$(1) \
217235
EXTRA_CFLAGS="$$(CFG_GCCISH_CFLAGS) $$(LIBUV_FLAGS_$$(HOST_$(1))) $$(SNAP_DEFINES)" \
218236
LDFLAGS="$$(CFG_GCCISH_LINK_FLAGS) $$(LIBUV_FLAGS_$$(HOST_$(1)))" \
219237
CC="$$(CC_$(1))" \
220238
CXX="$$(CXX_$(1))" \
221239
AR="$$(AR_$(1))"
222-
$$(Q)$$(MAKE) -C $$(CFG_BUILD_DIR)/rt/$(1)/stage$(2)/jemalloc
240+
$$(Q)$$(MAKE) -C $$(RT_BUILD_DIR_$(1)_$(2))/jemalloc
223241
endif
224242

225243

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

228246
# This regexp has a single $, escaped twice
229-
%.bsd.def: %.def.in $$(MKFILE_DEPS)
247+
$(1)/%.bsd.def: %.def.in $$(MKFILE_DEPS)
230248
@$$(call E, def: $$@)
231249
$$(Q)echo "{" > $$@
232250
$$(Q)sed 's/.$$$$/&;/' $$< >> $$@
233251
$$(Q)echo "};" >> $$@
234252

235-
%.linux.def: %.def.in $$(MKFILE_DEPS)
253+
$(1)/%.linux.def: %.def.in $$(MKFILE_DEPS)
236254
@$$(call E, def: $$@)
237255
$$(Q)echo "{" > $$@
238256
$$(Q)sed 's/.$$$$/&;/' $$< >> $$@
239257
$$(Q)echo "};" >> $$@
240258

241-
%.darwin.def: %.def.in $$(MKFILE_DEPS)
259+
$(1)/%.darwin.def: %.def.in $$(MKFILE_DEPS)
242260
@$$(call E, def: $$@)
243261
$$(Q)sed 's/^./_&/' $$< > $$@
244262

245-
%.android.def: %.def.in $$(MKFILE_DEPS)
263+
$(1)/%.android.def: %.def.in $$(MKFILE_DEPS)
246264
@$$(call E, def: $$@)
247265
$$(Q)echo "{" > $$@
248266
$$(Q)sed 's/.$$$$/&;/' $$< >> $$@
249267
$$(Q)echo "};" >> $$@
250268

251-
%.mingw32.def: %.def.in $$(MKFILE_DEPS)
269+
$(1)/%.mingw32.def: %.def.in $$(MKFILE_DEPS)
252270
@$$(call E, def: $$@)
253271
$$(Q)echo LIBRARY $$* > $$@
254272
$$(Q)echo EXPORTS >> $$@

0 commit comments

Comments
 (0)