Skip to content

Commit bada65d

Browse files
committed
---
yaml --- r: 6866 b: refs/heads/master c: b957916 h: refs/heads/master v: v3
1 parent c47a1ee commit bada65d

File tree

18 files changed

+620
-1485
lines changed

18 files changed

+620
-1485
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: bc95ccb53694a8ad992ea5bf58e41a22c4e7b7d6
2+
refs/heads/master: b957916e06ea70b70aef1e404b089292aad42d7b

trunk/Makefile.in

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -209,11 +209,8 @@ STDLIB_INPUTS := $(wildcard $(addprefix $(S)src/libstd/, \
209209
######################################################################
210210

211211
COMPILER_CRATE := $(S)src/comp/rustc.rc
212-
COMPILER_INPUTS := $(filter-out $(S)src/comp/driver/rustc.rs, \
213-
$(wildcard $(addprefix $(S)src/comp/, \
214-
rustc.rc *.rs */*.rs */*/*.rs)))
215-
216-
RUSTC_INPUTS := $(S)src/comp/driver/rustc.rs
212+
COMPILER_INPUTS := $(wildcard $(addprefix $(S)src/comp/, \
213+
rustc.rc *.rs */*.rs */*/*.rs))
217214

218215
######################################################################
219216
# LLVM macros

trunk/mk/perf.mk

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@
22
ifdef CFG_PERF_TOOL
33
rustc-perf$(X): $(CFG_HOST_TRIPLE)/stage2/bin/rustc$(X)
44
@$(call E, perf compile: $@)
5-
$(PERF_STAGE2_T_$(CFG_HOST_TRIPLE)_H_$(CFG_HOST_TRIPLE)) --lib \
6-
-o $@ $(COMPILER_CRATE) >rustc-perf.err 2>&1
7-
$(Q)rm -f $(LIBRUSTC_GLOB)
5+
$(PERF_STAGE2_T_$(CFG_HOST_TRIPLE)_H_$(CFG_HOST_TRIPLE)) -o $@ $(COMPILER_CRATE) >rustc-perf.err 2>&1
6+
$(Q)rm -f $@
87
else
98
rustc-perf$(X): $(CFG_HOST_TRIPLE)/stage2/bin/rustc$(X)
109
$(Q)touch $@

trunk/mk/target.mk

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,17 @@ $$(TLIB$(1)_T_$(2)_H_$(3))/$$(CFG_RUSTLLVM): \
4646
$$(Q)cp $$< $$@
4747

4848
$$(TBIN$(1)_T_$(2)_H_$(3))/rustc$$(X): \
49-
$$(RUSTC_INPUTS) \
50-
$$(TLIBRUSTC_DEFAULT$(1)_T_$(2)_H_$(3))
49+
$$(COMPILER_CRATE) $$(COMPILER_INPUTS) \
50+
$$(TSREQ$(1)_T_$(2)_H_$(3)) \
51+
$$(TLIB$(1)_T_$(2)_H_$(3))/$$(CFG_RUSTLLVM) \
52+
$$(TCORELIB_DEFAULT$(1)_T_$(2)_H_$(3)) \
53+
$$(TSTDLIB_DEFAULT$(1)_T_$(2)_H_$(3))
5154
@$$(call E, compile_and_link: $$@)
5255
$$(STAGE$(1)_T_$(2)_H_$(3)) -o $$@ $$<
5356

5457
$$(TLIB$(1)_T_$(2)_H_$(3))/$$(CFG_LIBRUSTC): \
5558
$$(COMPILER_CRATE) $$(COMPILER_INPUTS) \
56-
$$(TSREQ$(1)_T_$(2)_H_$(3)) \
59+
$$(TSREQ$(1)_T_$(2)_H_$(3)) \
5760
$$(TLIB$(1)_T_$(2)_H_$(3))/$$(CFG_RUSTLLVM) \
5861
$$(TCORELIB_DEFAULT$(1)_T_$(2)_H_$(3)) \
5962
$$(TSTDLIB_DEFAULT$(1)_T_$(2)_H_$(3))

trunk/src/comp/back/rpath.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import std::fs;
33
import std::os_fs;
44
import vec;
55
import std::map;
6-
import std::math;
76
import str;
87
import uint;
98
import metadata::cstore;
@@ -129,7 +128,7 @@ fn get_relative_to(abs1: fs::path, abs2: fs::path) -> fs::path {
129128
assert len1 > 0u;
130129
assert len2 > 0u;
131130

132-
let max_common_path = math::min(len1, len2) - 1u;
131+
let max_common_path = float::min(len1, len2) - 1u;
133132
let start_idx = 0u;
134133
while start_idx < max_common_path
135134
&& split1[start_idx] == split2[start_idx] {

0 commit comments

Comments
 (0)