Skip to content

Commit f39b951

Browse files
committed
---
yaml --- r: 79802 b: refs/heads/try c: e0e5523 h: refs/heads/master v: v3
1 parent b0721c1 commit f39b951

File tree

147 files changed

+1929
-4935
lines changed

Some content is hidden

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

147 files changed

+1929
-4935
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: 2c31053d20ba8f4bd9120d2025d8eb226b94179a
5+
refs/heads/try: e0e5523552c5b7ae6c7175c5e7aeefbac5fd0ba1
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c

branches/try/.gitmodules

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,5 @@
44
branch = master
55
[submodule "src/libuv"]
66
path = src/libuv
7-
url = https://github.com/alexcrichton/libuv.git
7+
url = https://github.com/brson/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: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -574,10 +574,19 @@ ALL_TARGET_RULES = $(foreach target,$(CFG_TARGET_TRIPLES), \
574574
$(foreach host,$(CFG_HOST_TRIPLES), \
575575
all-target-$(target)-host-$(host)))
576576

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

579580
endif
580581

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+
581590

582591
######################################################################
583592
# Re-configuration

branches/try/configure

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

667+
make_dir llvm
667668
for t in $CFG_HOST_TRIPLES
668669
do
669-
make_dir $t/llvm
670+
make_dir llvm/$t
670671
done
671672

673+
make_dir rustllvm
672674
for t in $CFG_HOST_TRIPLES
673675
do
674-
make_dir $t/rustllvm
676+
make_dir rustllvm/$t
675677
done
676678

679+
make_dir rt
677680
for t in $CFG_TARGET_TRIPLES
678681
do
679-
make_dir $t/rt
682+
make_dir rt/$t
680683
for s in 0 1 2 3
681684
do
682-
make_dir $t/rt/stage$s
685+
make_dir rt/$t/stage$s
683686
for i in \
684687
isaac linenoise sync test \
685688
arch/i386 arch/x86_64 arch/arm arch/mips \
686689
libuv libuv/src/ares libuv/src/eio libuv/src/ev \
687690
jemalloc
688691
do
689-
make_dir $t/rt/stage$s/$i
692+
make_dir rt/$t/stage$s/$i
690693
done
691694
done
692695
done
@@ -788,7 +791,7 @@ do
788791

789792
if [ -z $CFG_LLVM_ROOT ]
790793
then
791-
LLVM_BUILD_DIR=${CFG_BUILD_DIR}$t/llvm
794+
LLVM_BUILD_DIR=${CFG_BUILD_DIR}llvm/$t
792795
if [ ! -z "$CFG_DISABLE_OPTIMIZE_LLVM" ]
793796
then
794797
LLVM_DBG_OPTS="--enable-debug-symbols --disable-optimized"
@@ -823,7 +826,7 @@ do
823826
index2="${CFG_SRC_DIR}src/llvm/.git/index"
824827
for index in ${index1} ${index2}
825828
do
826-
config_status="${LLVM_BUILD_DIR}/config.status"
829+
config_status="${CFG_BUILD_DIR}llvm/$t/config.status"
827830
if test -e ${index} -a \
828831
-e ${config_status} -a \
829832
${config_status} -nt ${index}

branches/try/doc/rust.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3385,11 +3385,9 @@ 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. 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`.
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.
33933391

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

branches/try/mk/clean.mk

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

3434
clean-misc:
3535
@$(call E, cleaning)
36-
$(Q)find $(CFG_BUILD_TRIPLE)/rustllvm \
37-
$(CFG_BUILD_TRIPLE)/rt \
38-
$(CFG_BUILD_TRIPLE)/test \
36+
$(Q)find rustllvm rt $(CFG_BUILD_TRIPLE)/test \
3937
-name '*.[odasS]' -o \
4038
-name '*.so' -o \
4139
-name '*.dylib' -o \
4240
-name '*.dll' -o \
4341
-name '*.def' -o \
4442
-name '*.bc' \
4543
| xargs rm -f
46-
$(Q)find $(CFG_BUILD_TRIPLE)\
44+
$(Q)find rustllvm rt $(CFG_BUILD_TRIPLE)\
4745
-name '*.dSYM' \
4846
| xargs rm -Rf
4947
$(Q)rm -f $(RUNTIME_OBJS) $(RUNTIME_DEF)
5048
$(Q)rm -f $(RUSTLLVM_LIB_OBJS) $(RUSTLLVM_OBJS_OBJS) $(RUSTLLVM_DEF)
5149
$(Q)rm -Rf $(DOCS)
5250
$(Q)rm -Rf $(GENERATED)
53-
$(Q)rm -Rf tmp/*
51+
$(Q)rm -f tmp/*
5452
$(Q)rm -Rf rust-stage0-*.tar.bz2 $(PKG_NAME)-*.tar.gz dist
5553
$(Q)rm -Rf $(foreach ext, \
5654
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 $(S)src/gyp
15+
PKG_GITMODULES := $(S)src/libuv $(S)src/llvm
1616

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

branches/try/mk/llvm.mk

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24,22 +24,12 @@ 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_STAMP_$(1) = $$(CFG_LLVM_BUILD_DIR_$(1))/llvm-auto-clean-stamp
28-
29-
$$(LLVM_CONFIG_$(1)): $$(LLVM_DEPS) $$(LLVM_STAMP_$(1))
27+
$$(LLVM_CONFIG_$(1)): $$(LLVM_DEPS)
3028
@$$(call E, make: llvm)
3129
$$(Q)$$(MAKE) -C $$(CFG_LLVM_BUILD_DIR_$(1)) $$(CFG_LLVM_BUILD_ENV)
3230
$$(Q)touch $$(LLVM_CONFIG_$(1))
3331
endif
3432

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-
4333
endef
4434

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

branches/try/mk/rt.mk

Lines changed: 39 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -91,64 +91,61 @@ 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-
9794
ifeq ($$(CFG_WINDOWSY_$(1)), 1)
9895
LIBUV_OSTYPE_$(1)_$(2) := win
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
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
10198
else ifeq ($(OSTYPE_$(1)), apple-darwin)
10299
LIBUV_OSTYPE_$(1)_$(2) := mac
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
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
105102
else ifeq ($(OSTYPE_$(1)), unknown-freebsd)
106103
LIBUV_OSTYPE_$(1)_$(2) := unix/freebsd
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
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
109106
else ifeq ($(OSTYPE_$(1)), linux-androideabi)
110107
LIBUV_OSTYPE_$(1)_$(2) := unix/android
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
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
113110
else
114111
LIBUV_OSTYPE_$(1)_$(2) := unix/linux
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
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
117114
endif
118115

119-
RUNTIME_DEF_$(1)_$(2) := $$(RT_OUTPUT_DIR_$(1))/rustrt$$(CFG_DEF_SUFFIX_$(1))
116+
RUNTIME_DEF_$(1)_$(2) := rt/rustrt$(CFG_DEF_SUFFIX_$(1))
120117
RUNTIME_INCS_$(1)_$(2) := -I $$(S)src/rt -I $$(S)src/rt/isaac -I $$(S)src/rt/uthash \
121118
-I $$(S)src/rt/arch/$$(HOST_$(1)) \
122119
-I $$(S)src/rt/linenoise \
123120
-I $$(S)src/libuv/include
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)
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)
127124
ALL_OBJ_FILES += $$(RUNTIME_OBJS_$(1)_$(2))
128125

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

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

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

142-
$$(RT_BUILD_DIR_$(1)_$(2))/%.o: rt/%.S $$(MKFILE_DEPS) \
139+
rt/$(1)/stage$(2)/%.o: rt/%.S $$(MKFILE_DEPS) \
143140
$$(LLVM_CONFIG_$$(CFG_BUILD_TRIPLE))
144141
@$$(call E, compile: $$@)
145142
$$(Q)$$(call CFG_ASSEMBLE_$(1),$$@,$$<)
146143

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

151-
$$(RT_BUILD_DIR_$(1)_$(2))/$(CFG_RUNTIME_$(1)): $$(RUNTIME_OBJS_$(1)_$(2)) $$(MKFILE_DEPS) \
148+
rt/$(1)/stage$(2)/$(CFG_RUNTIME_$(1)): $$(RUNTIME_OBJS_$(1)_$(2)) $$(MKFILE_DEPS) \
152149
$$(RUNTIME_DEF_$(1)_$(2)) $$(LIBUV_LIB_$(1)_$(2)) $$(JEMALLOC_LIB_$(1)_$(2))
153150
@$$(call E, link: $$@)
154151
$$(Q)$$(call CFG_LINK_CXX_$(1),$$@, $$(RUNTIME_OBJS_$(1)_$(2)) \
@@ -170,103 +167,88 @@ LIBUV_DEPS := $$(wildcard \
170167
$$(S)src/libuv/*/*/*/*)
171168
endif
172169

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-
184170
# XXX: Shouldn't need platform-specific conditions here
185171
ifdef CFG_WINDOWSY_$(1)
186172
$$(LIBUV_LIB_$(1)_$(2)): $$(LIBUV_DEPS)
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))" \
173+
$$(Q)$$(MAKE) -C $$(S)src/libuv/ \
174+
builddir_name="$$(CFG_BUILD_DIR)/rt/$(1)/stage$(2)/libuv" \
175+
OS=mingw \
190176
V=$$(VERBOSE)
191-
$$(Q)cp $$(S)src/libuv/libuv.a $$@
192177
else ifeq ($(OSTYPE_$(1)), linux-androideabi)
193-
$$(LIBUV_LIB_$(1)_$(2)): $$(LIBUV_DEPS) $$(LIBUV_MAKEFILE_$(1)_$(2))
194-
$$(Q)$$(MAKE) -C $$(@D) \
178+
$$(LIBUV_LIB_$(1)_$(2)): $$(LIBUV_DEPS)
179+
$$(Q)$$(MAKE) -C $$(S)src/libuv/ \
195180
CFLAGS="$$(CFG_GCCISH_CFLAGS) $$(LIBUV_FLAGS_$$(HOST_$(1))) $$(SNAP_DEFINES)" \
196181
LDFLAGS="$$(CFG_GCCISH_LINK_FLAGS) $$(LIBUV_FLAGS_$$(HOST_$(1)))" \
197182
CC="$$(CC_$(1))" \
198183
CXX="$$(CXX_$(1))" \
199184
LINK="$$(CXX_$(1))" \
200185
AR="$$(AR_$(1))" \
201186
PLATFORM=android \
202-
host=android OS=linux \
203-
builddir="." \
204187
BUILDTYPE=Release \
205-
NO_LOAD="$$(LIBUV_NO_LOAD)" \
188+
builddir_name="$$(CFG_BUILD_DIR)/rt/$(1)/stage$(2)/libuv" \
189+
host=android OS=linux \
206190
V=$$(VERBOSE)
207191
else
208-
$$(LIBUV_LIB_$(1)_$(2)): $$(LIBUV_DEPS) $$(LIBUV_MAKEFILE_$(1)_$(2))
209-
$$(Q)$$(MAKE) -C $$(@D) \
192+
$$(LIBUV_LIB_$(1)_$(2)): $$(LIBUV_DEPS)
193+
$$(Q)$$(MAKE) -C $$(S)src/libuv/ \
210194
CFLAGS="$$(CFG_GCCISH_CFLAGS) $$(LIBUV_FLAGS_$$(HOST_$(1))) $$(SNAP_DEFINES)" \
211195
LDFLAGS="$$(CFG_GCCISH_LINK_FLAGS) $$(LIBUV_FLAGS_$$(HOST_$(1)))" \
212196
CC="$$(CC_$(1))" \
213197
CXX="$$(CXX_$(1))" \
214198
AR="$$(AR_$(1))" \
215-
builddir="." \
216-
BUILDTYPE=Release \
217-
NO_LOAD="$$(LIBUV_NO_LOAD)" \
199+
builddir_name="$$(CFG_BUILD_DIR)/rt/$(1)/stage$(2)/libuv" \
218200
V=$$(VERBOSE)
219201
endif
220202

221203
ifeq ($(OSTYPE_$(1)), linux-androideabi)
222204
$$(JEMALLOC_LIB_$(1)_$(2)):
223-
cd $$(RT_BUILD_DIR_$(1)_$(2))/jemalloc; $(S)src/rt/jemalloc/configure \
205+
cd $$(CFG_BUILD_DIR)/rt/$(1)/stage$(2)/jemalloc; $(S)src/rt/jemalloc/configure \
224206
--disable-experimental --build=$(CFG_BUILD_TRIPLE) --host=$(1) --disable-tls \
225207
EXTRA_CFLAGS="$$(CFG_GCCISH_CFLAGS) $$(LIBUV_FLAGS_$$(HOST_$(1))) $$(SNAP_DEFINES)" \
226208
LDFLAGS="$$(CFG_GCCISH_LINK_FLAGS) $$(LIBUV_FLAGS_$$(HOST_$(1)))" \
227209
CC="$$(CC_$(1))" \
228210
CXX="$$(CXX_$(1))" \
229211
AR="$$(AR_$(1))"
230-
$$(Q)$$(MAKE) -C $$(RT_BUILD_DIR_$(1)_$(2))/jemalloc
212+
$$(Q)$$(MAKE) -C $$(CFG_BUILD_DIR)/rt/$(1)/stage$(2)/jemalloc
231213
else
232214
$$(JEMALLOC_LIB_$(1)_$(2)):
233-
cd $$(RT_BUILD_DIR_$(1)_$(2))/jemalloc; $(S)src/rt/jemalloc/configure \
215+
cd $$(CFG_BUILD_DIR)/rt/$(1)/stage$(2)/jemalloc; $(S)src/rt/jemalloc/configure \
234216
--disable-experimental --build=$(CFG_BUILD_TRIPLE) --host=$(1) \
235217
EXTRA_CFLAGS="$$(CFG_GCCISH_CFLAGS) $$(LIBUV_FLAGS_$$(HOST_$(1))) $$(SNAP_DEFINES)" \
236218
LDFLAGS="$$(CFG_GCCISH_LINK_FLAGS) $$(LIBUV_FLAGS_$$(HOST_$(1)))" \
237219
CC="$$(CC_$(1))" \
238220
CXX="$$(CXX_$(1))" \
239221
AR="$$(AR_$(1))"
240-
$$(Q)$$(MAKE) -C $$(RT_BUILD_DIR_$(1)_$(2))/jemalloc
222+
$$(Q)$$(MAKE) -C $$(CFG_BUILD_DIR)/rt/$(1)/stage$(2)/jemalloc
241223
endif
242224

243225

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

246228
# This regexp has a single $, escaped twice
247-
$(1)/%.bsd.def: %.def.in $$(MKFILE_DEPS)
229+
%.bsd.def: %.def.in $$(MKFILE_DEPS)
248230
@$$(call E, def: $$@)
249231
$$(Q)echo "{" > $$@
250232
$$(Q)sed 's/.$$$$/&;/' $$< >> $$@
251233
$$(Q)echo "};" >> $$@
252234

253-
$(1)/%.linux.def: %.def.in $$(MKFILE_DEPS)
235+
%.linux.def: %.def.in $$(MKFILE_DEPS)
254236
@$$(call E, def: $$@)
255237
$$(Q)echo "{" > $$@
256238
$$(Q)sed 's/.$$$$/&;/' $$< >> $$@
257239
$$(Q)echo "};" >> $$@
258240

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

263-
$(1)/%.android.def: %.def.in $$(MKFILE_DEPS)
245+
%.android.def: %.def.in $$(MKFILE_DEPS)
264246
@$$(call E, def: $$@)
265247
$$(Q)echo "{" > $$@
266248
$$(Q)sed 's/.$$$$/&;/' $$< >> $$@
267249
$$(Q)echo "};" >> $$@
268250

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

0 commit comments

Comments
 (0)