Skip to content

Commit 26ed7f2

Browse files
committed
---
yaml --- r: 6871 b: refs/heads/master c: bc95ccb h: refs/heads/master i: 6869: cd7da11 6867: bdbd51c 6863: 5b9eff2 v: v3
1 parent 16d2658 commit 26ed7f2

File tree

21 files changed

+1512
-700
lines changed

21 files changed

+1512
-700
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: 96d7f83eb0c87453d57e5a71959d0d74a9e500ca
2+
refs/heads/master: bc95ccb53694a8ad992ea5bf58e41a22c4e7b7d6

trunk/Makefile.in

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

211211
COMPILER_CRATE := $(S)src/comp/rustc.rc
212-
COMPILER_INPUTS := $(wildcard $(addprefix $(S)src/comp/, \
213-
rustc.rc *.rs */*.rs */*/*.rs))
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
214217

215218
######################################################################
216219
# LLVM macros

trunk/mk/perf.mk

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
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)) -o $@ $(COMPILER_CRATE) >rustc-perf.err 2>&1
6-
$(Q)rm -f $@
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)
78
else
89
rustc-perf$(X): $(CFG_HOST_TRIPLE)/stage2/bin/rustc$(X)
910
$(Q)touch $@

trunk/mk/target.mk

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

4848
$$(TBIN$(1)_T_$(2)_H_$(3))/rustc$$(X): \
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))
49+
$$(RUSTC_INPUTS) \
50+
$$(TLIBRUSTC_DEFAULT$(1)_T_$(2)_H_$(3))
5451
@$$(call E, compile_and_link: $$@)
5552
$$(STAGE$(1)_T_$(2)_H_$(3)) -o $$@ $$<
5653

5754
$$(TLIB$(1)_T_$(2)_H_$(3))/$$(CFG_LIBRUSTC): \
5855
$$(COMPILER_CRATE) $$(COMPILER_INPUTS) \
59-
$$(TSREQ$(1)_T_$(2)_H_$(3)) \
56+
$$(TSREQ$(1)_T_$(2)_H_$(3)) \
6057
$$(TLIB$(1)_T_$(2)_H_$(3))/$$(CFG_RUSTLLVM) \
6158
$$(TCORELIB_DEFAULT$(1)_T_$(2)_H_$(3)) \
6259
$$(TSTDLIB_DEFAULT$(1)_T_$(2)_H_$(3))

trunk/src/comp/back/rpath.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import std::fs;
33
import std::os_fs;
44
import vec;
55
import std::map;
6+
import std::math;
67
import str;
78
import uint;
89
import metadata::cstore;
@@ -128,7 +129,7 @@ fn get_relative_to(abs1: fs::path, abs2: fs::path) -> fs::path {
128129
assert len1 > 0u;
129130
assert len2 > 0u;
130131

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

0 commit comments

Comments
 (0)