Skip to content

Commit 8e17c6c

Browse files
---
yaml --- r: 233406 b: refs/heads/beta c: 59f8e32 h: refs/heads/master v: v3
1 parent 922f619 commit 8e17c6c

Some content is hidden

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

59 files changed

+656
-1301
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ refs/tags/0.9: 36870b185fc5f5486636d4515f0e22677493f225
2323
refs/tags/0.10: ac33f2b15782272ae348dbd7b14b8257b2148b5a
2424
refs/tags/0.11.0: e1247cb1d0d681be034adb4b558b5a0c0d5720f9
2525
refs/tags/0.12.0: f0c419429ef30723ceaf6b42f9b5a2aeb5d2e2d1
26-
refs/heads/beta: 1e1b7f30228782ebf6168a5e20e63cdd7b9763ff
26+
refs/heads/beta: 59f8e3238a38afe350bf8cdc119d7315bf9b5f6c
2727
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
2828
refs/heads/tmp: 370fe2786109360f7c35b8ba552b83b773dd71d6
2929
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f

branches/beta/mk/crates.mk

Lines changed: 6 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -52,23 +52,23 @@
5252
TARGET_CRATES := libc std flate arena term \
5353
serialize getopts collections test rand \
5454
log graphviz core rbml alloc \
55-
rustc_unicode rustc_bitflags \
56-
alloc_system
55+
rustc_unicode rustc_bitflags
5756
RUSTC_CRATES := rustc rustc_typeck rustc_borrowck rustc_resolve rustc_driver \
5857
rustc_trans rustc_back rustc_llvm rustc_privacy rustc_lint \
5958
rustc_data_structures
6059
HOST_CRATES := syntax $(RUSTC_CRATES) rustdoc fmt_macros
60+
CRATES := $(TARGET_CRATES) $(HOST_CRATES)
6161
TOOLS := compiletest rustdoc rustc rustbook error-index-generator
6262

6363
DEPS_core :=
6464
DEPS_libc := core
6565
DEPS_rustc_unicode := core
66-
DEPS_alloc := core libc alloc_system
66+
DEPS_alloc := core libc native:jemalloc
6767
DEPS_std := core libc rand alloc collections rustc_unicode \
6868
native:rust_builtin native:backtrace \
69-
alloc_system
69+
rustc_bitflags
7070
DEPS_graphviz := std
71-
DEPS_syntax := std term serialize log fmt_macros arena libc rustc_bitflags
71+
DEPS_syntax := std term serialize log fmt_macros arena libc
7272
DEPS_rustc_driver := arena flate getopts graphviz libc rustc rustc_back rustc_borrowck \
7373
rustc_typeck rustc_resolve log syntax serialize rustc_llvm \
7474
rustc_trans rustc_privacy rustc_lint
@@ -82,7 +82,7 @@ DEPS_rustc_privacy := rustc log syntax
8282
DEPS_rustc_lint := rustc log syntax
8383
DEPS_rustc := syntax flate arena serialize getopts rbml \
8484
log graphviz rustc_llvm rustc_back rustc_data_structures
85-
DEPS_rustc_llvm := native:rustllvm libc std rustc_bitflags
85+
DEPS_rustc_llvm := native:rustllvm libc std
8686
DEPS_rustc_back := std syntax rustc_llvm flate log libc
8787
DEPS_rustc_data_structures := std log serialize
8888
DEPS_rustdoc := rustc rustc_driver native:hoedown serialize getopts \
@@ -102,7 +102,6 @@ DEPS_test := std getopts serialize rbml term native:rust_test_helpers
102102
DEPS_rand := core
103103
DEPS_log := std
104104
DEPS_fmt_macros = std
105-
DEPS_alloc_system := core libc
106105

107106
TOOL_DEPS_compiletest := test getopts
108107
TOOL_DEPS_rustdoc := rustdoc
@@ -122,26 +121,14 @@ ONLY_RLIB_rand := 1
122121
ONLY_RLIB_collections := 1
123122
ONLY_RLIB_rustc_unicode := 1
124123
ONLY_RLIB_rustc_bitflags := 1
125-
ONLY_RLIB_alloc_system := 1
126124

127125
# Documented-by-default crates
128126
DOC_CRATES := std alloc collections core libc rustc_unicode
129127

130-
ifeq ($(CFG_DISABLE_JEMALLOC),)
131-
TARGET_CRATES += alloc_jemalloc
132-
DEPS_std += alloc_jemalloc
133-
DEPS_alloc_jemalloc := core libc native:jemalloc
134-
ONLY_RLIB_alloc_jemalloc := 1
135-
else
136-
RUSTFLAGS_rustc_back := --cfg disable_jemalloc
137-
endif
138-
139128
################################################################################
140129
# You should not need to edit below this line
141130
################################################################################
142131

143-
CRATES := $(TARGET_CRATES) $(HOST_CRATES)
144-
145132
# This macro creates some simple definitions for each crate being built, just
146133
# some munging of all of the parameters above.
147134
#

branches/beta/mk/rt.mk

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,8 @@ $$(JEMALLOC_LOCAL_$(1)): $$(JEMALLOC_DEPS) $$(MKFILE_DEPS)
184184
EXTRA_CFLAGS="-g1 -ffunction-sections -fdata-sections"
185185
$$(Q)$$(MAKE) -C "$$(JEMALLOC_BUILD_DIR_$(1))" build_lib_static
186186

187+
ifeq ($$(CFG_DISABLE_JEMALLOC),)
188+
RUSTFLAGS_alloc := --cfg jemalloc
187189
ifeq ($(1),$$(CFG_BUILD))
188190
ifneq ($$(CFG_JEMALLOC_ROOT),)
189191
$$(JEMALLOC_LIB_$(1)): $$(CFG_JEMALLOC_ROOT)/libjemalloc_pic.a
@@ -197,6 +199,10 @@ else
197199
$$(JEMALLOC_LIB_$(1)): $$(JEMALLOC_LOCAL_$(1))
198200
$$(Q)cp $$< $$@
199201
endif
202+
else
203+
$$(JEMALLOC_LIB_$(1)): $$(MKFILE_DEPS)
204+
$$(Q)touch $$@
205+
endif
200206

201207
################################################################################
202208
# compiler-rt

branches/beta/mk/tests.mk

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@ $(eval $(call RUST_CRATE,coretest))
2222
DEPS_collectionstest :=
2323
$(eval $(call RUST_CRATE,collectionstest))
2424

25-
TEST_TARGET_CRATES = $(filter-out core rustc_unicode alloc_system \
26-
alloc_jemalloc,$(TARGET_CRATES)) \
25+
TEST_TARGET_CRATES = $(filter-out core rustc_unicode,$(TARGET_CRATES)) \
2726
collectionstest coretest
2827
TEST_DOC_CRATES = $(DOC_CRATES)
2928
TEST_HOST_CRATES = $(filter-out rustc_typeck rustc_borrowck rustc_resolve \

0 commit comments

Comments
 (0)