Skip to content

Commit 922f619

Browse files
committed
---
yaml --- r: 233405 b: refs/heads/beta c: 1e1b7f3 h: refs/heads/master i: 233403: 830052f v: v3
1 parent 1b555b2 commit 922f619

Some content is hidden

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

57 files changed

+1289
-649
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: 975a8ed312bbe262171b4c950c52cf992293bd55
26+
refs/heads/beta: 1e1b7f30228782ebf6168a5e20e63cdd7b9763ff
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: 19 additions & 6 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
55+
rustc_unicode rustc_bitflags \
56+
alloc_system
5657
RUSTC_CRATES := rustc rustc_typeck rustc_borrowck rustc_resolve rustc_driver \
5758
rustc_trans rustc_back rustc_llvm rustc_privacy rustc_lint \
5859
rustc_data_structures
5960
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 native:jemalloc
66+
DEPS_alloc := core libc alloc_system
6767
DEPS_std := core libc rand alloc collections rustc_unicode \
6868
native:rust_builtin native:backtrace \
69-
rustc_bitflags
69+
alloc_system
7070
DEPS_graphviz := std
71-
DEPS_syntax := std term serialize log fmt_macros arena libc
71+
DEPS_syntax := std term serialize log fmt_macros arena libc rustc_bitflags
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
85+
DEPS_rustc_llvm := native:rustllvm libc std rustc_bitflags
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,6 +102,7 @@ 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
105106

106107
TOOL_DEPS_compiletest := test getopts
107108
TOOL_DEPS_rustdoc := rustdoc
@@ -121,14 +122,26 @@ ONLY_RLIB_rand := 1
121122
ONLY_RLIB_collections := 1
122123
ONLY_RLIB_rustc_unicode := 1
123124
ONLY_RLIB_rustc_bitflags := 1
125+
ONLY_RLIB_alloc_system := 1
124126

125127
# Documented-by-default crates
126128
DOC_CRATES := std alloc collections core libc rustc_unicode
127129

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+
128139
################################################################################
129140
# You should not need to edit below this line
130141
################################################################################
131142

143+
CRATES := $(TARGET_CRATES) $(HOST_CRATES)
144+
132145
# This macro creates some simple definitions for each crate being built, just
133146
# some munging of all of the parameters above.
134147
#

branches/beta/mk/rt.mk

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -184,8 +184,6 @@ $$(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
189187
ifeq ($(1),$$(CFG_BUILD))
190188
ifneq ($$(CFG_JEMALLOC_ROOT),)
191189
$$(JEMALLOC_LIB_$(1)): $$(CFG_JEMALLOC_ROOT)/libjemalloc_pic.a
@@ -199,10 +197,6 @@ else
199197
$$(JEMALLOC_LIB_$(1)): $$(JEMALLOC_LOCAL_$(1))
200198
$$(Q)cp $$< $$@
201199
endif
202-
else
203-
$$(JEMALLOC_LIB_$(1)): $$(MKFILE_DEPS)
204-
$$(Q)touch $$@
205-
endif
206200

207201
################################################################################
208202
# compiler-rt

branches/beta/mk/tests.mk

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

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

0 commit comments

Comments
 (0)