51
51
52
52
TARGET_CRATES := libc std term \
53
53
getopts collections test rand \
54
- core alloc \
54
+ compiler_builtins core alloc \
55
55
rustc_unicode rustc_bitflags \
56
56
alloc_system alloc_jemalloc \
57
57
panic_abort panic_unwind unwind
58
58
RUSTC_CRATES := rustc rustc_typeck rustc_mir rustc_borrowck rustc_resolve rustc_driver \
59
59
rustc_trans rustc_back rustc_llvm rustc_privacy rustc_lint \
60
60
rustc_data_structures rustc_platform_intrinsics rustc_errors \
61
61
rustc_plugin rustc_metadata rustc_passes rustc_save_analysis \
62
- rustc_const_eval rustc_const_math rustc_incremental
62
+ rustc_const_eval rustc_const_math rustc_incremental rustc_macro
63
63
HOST_CRATES := syntax syntax_ext proc_macro syntax_pos $(RUSTC_CRATES ) rustdoc fmt_macros \
64
- flate arena graphviz rbml log serialize
64
+ flate arena graphviz log serialize
65
65
TOOLS := compiletest rustdoc rustc rustbook error_index_generator
66
66
67
67
DEPS_core :=
68
+ DEPS_compiler_builtins := core
68
69
DEPS_alloc := core libc alloc_system
69
70
DEPS_alloc_system := core libc
70
71
DEPS_alloc_jemalloc := core libc native:jemalloc
@@ -77,12 +78,14 @@ DEPS_panic_abort := libc alloc
77
78
DEPS_panic_unwind := libc alloc unwind
78
79
DEPS_unwind := libc
79
80
81
+ RUSTFLAGS_compiler_builtins := -lstatic=compiler-rt
82
+
80
83
# FIXME(stage0): change this to just `RUSTFLAGS_panic_abort := ...`
81
84
RUSTFLAGS1_panic_abort := -C panic=abort
82
85
RUSTFLAGS2_panic_abort := -C panic=abort
83
86
RUSTFLAGS3_panic_abort := -C panic=abort
84
87
85
- DEPS_std := core libc rand alloc collections rustc_unicode \
88
+ DEPS_std := core libc rand alloc collections compiler_builtins rustc_unicode \
86
89
native:backtrace \
87
90
alloc_system panic_abort panic_unwind unwind
88
91
DEPS_arena := std
@@ -93,21 +96,20 @@ DEPS_getopts := std
93
96
DEPS_graphviz := std
94
97
DEPS_log := std
95
98
DEPS_num := std
96
- DEPS_rbml := std log serialize
97
99
DEPS_serialize := std log
98
100
DEPS_term := std
99
101
DEPS_test := std getopts term native:rust_test_helpers
100
102
101
103
DEPS_syntax := std term serialize log arena libc rustc_bitflags rustc_unicode rustc_errors syntax_pos
102
- DEPS_syntax_ext := syntax syntax_pos rustc_errors fmt_macros
104
+ DEPS_syntax_ext := syntax syntax_pos rustc_errors fmt_macros rustc_macro
103
105
DEPS_proc_macro := syntax syntax_pos rustc_plugin log
104
106
DEPS_syntax_pos := serialize
105
107
106
108
DEPS_rustc_const_math := std syntax log serialize
107
109
DEPS_rustc_const_eval := rustc_const_math rustc syntax log serialize \
108
110
rustc_back graphviz syntax_pos
109
111
110
- DEPS_rustc := syntax fmt_macros flate arena serialize getopts rbml \
112
+ DEPS_rustc := syntax fmt_macros flate arena serialize getopts \
111
113
log graphviz rustc_llvm rustc_back rustc_data_structures\
112
114
rustc_const_math syntax_pos rustc_errors
113
115
DEPS_rustc_back := std syntax flate log libc
@@ -118,11 +120,13 @@ DEPS_rustc_driver := arena flate getopts graphviz libc rustc rustc_back rustc_bo
118
120
rustc_trans rustc_privacy rustc_lint rustc_plugin \
119
121
rustc_metadata syntax_ext proc_macro \
120
122
rustc_passes rustc_save_analysis rustc_const_eval \
121
- rustc_incremental syntax_pos rustc_errors
123
+ rustc_incremental syntax_pos rustc_errors rustc_macro
122
124
DEPS_rustc_errors := log libc serialize syntax_pos
123
125
DEPS_rustc_lint := rustc log syntax syntax_pos rustc_const_eval
124
126
DEPS_rustc_llvm := native:rustllvm libc std rustc_bitflags
125
- DEPS_rustc_metadata := rustc syntax syntax_pos rustc_errors rbml rustc_const_math
127
+ DEPS_rustc_macro := std syntax
128
+ DEPS_rustc_metadata := rustc syntax syntax_pos rustc_errors rustc_const_math \
129
+ rustc_macro syntax_ext
126
130
DEPS_rustc_passes := syntax syntax_pos rustc core rustc_const_eval rustc_errors
127
131
DEPS_rustc_mir := rustc syntax syntax_pos rustc_const_math rustc_const_eval rustc_bitflags
128
132
DEPS_rustc_resolve := arena rustc log syntax syntax_pos rustc_errors
@@ -132,7 +136,7 @@ DEPS_rustc_privacy := rustc log syntax syntax_pos
132
136
DEPS_rustc_trans := arena flate getopts graphviz libc rustc rustc_back \
133
137
log syntax serialize rustc_llvm rustc_platform_intrinsics \
134
138
rustc_const_math rustc_const_eval rustc_incremental rustc_errors syntax_pos
135
- DEPS_rustc_incremental := rbml rustc syntax_pos serialize rustc_data_structures
139
+ DEPS_rustc_incremental := rustc syntax_pos serialize rustc_data_structures
136
140
DEPS_rustc_save_analysis := rustc log syntax syntax_pos serialize
137
141
DEPS_rustc_typeck := rustc syntax syntax_pos rustc_platform_intrinsics rustc_const_math \
138
142
rustc_const_eval rustc_errors
@@ -151,6 +155,7 @@ TOOL_SOURCE_rustc := $(S)src/driver/driver.rs
151
155
TOOL_SOURCE_rustbook := $(S ) src/tools/rustbook/main.rs
152
156
TOOL_SOURCE_error_index_generator := $(S ) src/tools/error_index_generator/main.rs
153
157
158
+ ONLY_RLIB_compiler_builtins := 1
154
159
ONLY_RLIB_core := 1
155
160
ONLY_RLIB_libc := 1
156
161
ONLY_RLIB_alloc := 1
0 commit comments