Skip to content

Commit a18fee0

Browse files
committed
---
yaml --- r: 151849 b: refs/heads/try2 c: 6674913 h: refs/heads/master i: 151847: c68d3fe v: v3
1 parent 850faf5 commit a18fee0

File tree

148 files changed

+1884
-3771
lines changed

Some content is hidden

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

148 files changed

+1884
-3771
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ refs/heads/snap-stage3: 78a7676898d9f80ab540c6df5d4c9ce35bb50463
55
refs/heads/try: 519addf6277dbafccbb4159db4b710c37eaa2ec5
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8-
refs/heads/try2: 629195582b39a4956cd62439911f0094cf3878c6
8+
refs/heads/try2: 6674913c022f54cef5545e2e4956bc6f6c8528a1
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try2/mk/crates.mk

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -51,15 +51,14 @@
5151

5252
TARGET_CRATES := libc std green rustuv native flate arena glob term semver \
5353
uuid serialize sync getopts collections num test time rand \
54-
workcache url log regex graphviz core rlibc alloc
54+
workcache url log regex graphviz core rlibc
5555
HOST_CRATES := syntax rustc rustdoc fourcc hexfloat regex_macros fmt_macros
5656
CRATES := $(TARGET_CRATES) $(HOST_CRATES)
5757
TOOLS := compiletest rustdoc rustc
5858

5959
DEPS_core :=
6060
DEPS_rlibc :=
61-
DEPS_alloc := core libc native:jemalloc
62-
DEPS_std := core libc alloc native:rustrt native:backtrace
61+
DEPS_std := core libc native:rustrt native:compiler-rt native:backtrace native:jemalloc
6362
DEPS_graphviz := std
6463
DEPS_green := std rand native:context_switch
6564
DEPS_rustuv := std native:uv native:uv_support
@@ -74,17 +73,17 @@ DEPS_arena := std collections
7473
DEPS_graphviz := std
7574
DEPS_glob := std
7675
DEPS_serialize := std collections log
77-
DEPS_term := std collections log
76+
DEPS_term := std collections
7877
DEPS_semver := std
7978
DEPS_uuid := std serialize rand
80-
DEPS_sync := std alloc
79+
DEPS_sync := std
8180
DEPS_getopts := std
8281
DEPS_collections := std rand
8382
DEPS_fourcc := syntax std
8483
DEPS_hexfloat := syntax std
8584
DEPS_num := std rand
8685
DEPS_test := std collections getopts serialize term time regex
87-
DEPS_time := std serialize sync
86+
DEPS_time := std serialize
8887
DEPS_rand := std
8988
DEPS_url := std collections
9089
DEPS_workcache := std serialize collections log
@@ -102,7 +101,6 @@ TOOL_SOURCE_rustc := $(S)src/driver/driver.rs
102101

103102
ONLY_RLIB_core := 1
104103
ONLY_RLIB_rlibc := 1
105-
ONLY_RLIB_alloc := 1
106104

107105
################################################################################
108106
# You should not need to edit below this line

branches/try2/mk/main.mk

Lines changed: 12 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -349,45 +349,18 @@ CFGFLAG$(1)_T_$(2)_H_$(3) = stage$(1)
349349
endef
350350

351351
# Same macro/variables as above, but defined in a separate loop so it can use
352-
# all the variables above for all archs. The RPATH_VAR setup sometimes needs to
352+
# all the varibles above for all archs. The RPATH_VAR setup sometimes needs to
353353
# reach across triples to get things in order.
354-
#
355-
# Defines (with the standard $(1)_T_$(2)_H_$(3) suffix):
356-
# * `LD_LIBRARY_PATH_ENV_NAME`: the name for the key to use in the OS
357-
# environment to access or extend the lookup path for dynamic
358-
# libraries. Note on Windows, that key is `$PATH`, and thus not
359-
# only conflates programs with dynamic libraries, but also often
360-
# contains spaces which confuse make.
361-
# * `LD_LIBRARY_PATH_ENV_HOSTDIR`: the entry to add to lookup path for the host
362-
# * `LD_LIBRARY_PATH_ENV_TARGETDIR`: the entry to add to lookup path for target
363-
#
364-
# Below that, HOST_RPATH_VAR and TARGET_RPATH_VAR are defined in terms of the
365-
# above settings.
366-
#
367354
define SREQ_CMDS
368355

369356
ifeq ($$(OSTYPE_$(3)),apple-darwin)
370-
LD_LIBRARY_PATH_ENV_NAME$(1)_T_$(2)_H_$(3) := DYLD_LIBRARY_PATH
371-
else
372-
ifeq ($$(CFG_WINDOWSY_$(2)),1)
373-
LD_LIBRARY_PATH_ENV_NAME$(1)_T_$(2)_H_$(3) := PATH
357+
RPATH_VAR$(1)_T_$(2)_H_$(3) := \
358+
DYLD_LIBRARY_PATH="$$$$DYLD_LIBRARY_PATH:$$(CURDIR)/$$(HLIB$(1)_H_$(3))"
374359
else
375-
LD_LIBRARY_PATH_ENV_NAME$(1)_T_$(2)_H_$(3) := LD_LIBRARY_PATH
376-
endif
360+
RPATH_VAR$(1)_T_$(2)_H_$(3) := \
361+
LD_LIBRARY_PATH="$$$$LD_LIBRARY_PATH:$$(CURDIR)/$$(HLIB$(1)_H_$(3))"
377362
endif
378363

379-
LD_LIBRARY_PATH_ENV_HOSTDIR$(1)_T_$(2)_H_$(3) := \
380-
$$(CURDIR)/$$(HLIB$(1)_H_$(3))
381-
LD_LIBRARY_PATH_ENV_TARGETDIR$(1)_T_$(2)_H_$(3) := \
382-
$$(CURDIR)/$$(TLIB1_T_$(2)_H_$(CFG_BUILD))
383-
384-
HOST_RPATH_VAR$(1)_T_$(2)_H_$(3) := \
385-
$$(LD_LIBRARY_PATH_ENV_NAME$(1)_T_$(2)_H_$(3))=$$$$$$(LD_LIBRARY_PATH_ENV_NAME$(1)_T_$(2)_H_$(3)):$$(LD_LIBRARY_PATH_ENV_HOSTDIR$(1)_T_$(2)_H_$(3))
386-
TARGET_RPATH_VAR$(1)_T_$(2)_H_$(3) := \
387-
$$(LD_LIBRARY_PATH_ENV_NAME$(1)_T_$(2)_H_$(3))=$$$$$$(LD_LIBRARY_PATH_ENV_NAME$(1)_T_$(2)_H_$(3)):$$(LD_LIBRARY_PATH_ENV_TARGETDIR$(1)_T_$(2)_H_$(3))
388-
389-
RPATH_VAR$(1)_T_$(2)_H_$(3) := $$(HOST_RPATH_VAR$(1)_T_$(2)_H_$(3))
390-
391364
# Pass --cfg stage0 only for the build->host part of stage0;
392365
# if you're building a cross config, the host->* parts are
393366
# effectively stage1, since it uses the just-built stage0.
@@ -403,7 +376,13 @@ ifeq ($(1),0)
403376
ifneq ($(strip $(CFG_BUILD)),$(strip $(3)))
404377
CFGFLAG$(1)_T_$(2)_H_$(3) = stage1
405378

406-
RPATH_VAR$(1)_T_$(2)_H_$(3) := $$(TARGET_RPATH_VAR$(1)_T_$(2)_H_$(3))
379+
ifeq ($$(OSTYPE_$(3)),apple-darwin)
380+
RPATH_VAR$(1)_T_$(2)_H_$(3) := \
381+
DYLD_LIBRARY_PATH="$$$$DYLD_LIBRARY_PATH:$$(CURDIR)/$$(TLIB1_T_$(2)_H_$(CFG_BUILD))"
382+
else
383+
RPATH_VAR$(1)_T_$(2)_H_$(3) := \
384+
LD_LIBRARY_PATH="$$$$LD_LIBRARY_PATH:$$(CURDIR)/$$(TLIB1_T_$(2)_H_$(CFG_BUILD))"
385+
endif
407386
endif
408387
endif
409388

branches/try2/mk/rt.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ $$(JEMALLOC_LIB_$(1)): $$(JEMALLOC_DEPS) $$(MKFILE_DEPS)
261261
AR="$$(AR_$(1))" \
262262
RANLIB="$$(AR_$(1)) s" \
263263
CPPFLAGS="-I $(S)src/rt/" \
264-
EXTRA_CFLAGS="$$(CFG_CFLAGS_$(1)) -g1"
264+
EXTRA_CFLAGS="$$(CFG_CFLAGS_$(1))"
265265
$$(Q)$$(MAKE) -C "$$(JEMALLOC_BUILD_DIR_$(1))" build_lib_static
266266
$$(Q)cp $$(JEMALLOC_BUILD_DIR_$(1))/lib/$$(JEMALLOC_REAL_NAME_$(1)) $$(JEMALLOC_LIB_$(1))
267267

branches/try2/mk/tests.mk

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -793,27 +793,8 @@ else
793793
CRATEDOCTESTDEP_$(1)_$(2)_$(3)_$(4) = $$(RSINPUTS_$(4))
794794
endif
795795

796-
# (Issues #13732, #13983, #14000) The doc for the regex crate includes
797-
# uses of the `regex!` macro from the regex_macros crate. There is
798-
# normally a dependence injected that makes the target's regex depend
799-
# upon the host's regex_macros (see #13845), but that dependency
800-
# injection is currently skipped for stage1 as a special case.
801-
#
802-
# Therefore, as a further special case, this conditional skips
803-
# attempting to run the doc tests for the regex crate atop stage1,
804-
# (since there is no regex_macros crate for the stage1 rustc to load).
805-
#
806-
# (Another approach for solving this would be to inject the desired
807-
# dependence for stage1 as well, by setting things up to generate a
808-
# regex_macros crate that was compatible with the stage1 rustc and
809-
# thus re-enable our ability to run this test.)
810-
ifeq (stage$(1)-crate-$(4),stage1-crate-regex)
811-
check-stage$(1)-T-$(2)-H-$(3)-doc-crate-$(4)-exec:
812-
@$$(call E, skipping doc-crate-$(4) as it uses macros and cannot run at stage$(1))
813-
else
814796
check-stage$(1)-T-$(2)-H-$(3)-doc-crate-$(4)-exec: \
815797
$$(call TEST_OK_FILE,$(1),$(2),$(3),doc-crate-$(4))
816-
endif
817798

818799
ifeq ($(2),$$(CFG_BUILD))
819800
$$(call TEST_OK_FILE,$(1),$(2),$(3),doc-crate-$(4)): $$(CRATEDOCTESTDEP_$(1)_$(2)_$(3)_$(4))
@@ -970,10 +951,7 @@ $(3)/test/run-make/%-$(1)-T-$(2)-H-$(3).ok: \
970951
"$$(CC_$(3)) $$(CFG_GCCISH_CFLAGS_$(3))" \
971952
$$(HBIN$(1)_H_$(3))/rustdoc$$(X_$(3)) \
972953
"$$(TESTNAME)" \
973-
$$(LD_LIBRARY_PATH_ENV_NAME$(1)_T_$(2)_H_$(3)) \
974-
"$$(LD_LIBRARY_PATH_ENV_HOSTDIR$(1)_T_$(2)_H_$(3))" \
975-
"$$(LD_LIBRARY_PATH_ENV_TARGETDIR$(1)_T_$(2)_H_$(3))" \
976-
$(1)
954+
"$$(RPATH_VAR$(1)_T_$(2)_H_$(3))"
977955
@touch $$@
978956
else
979957
# FIXME #11094 - The above rule doesn't work right for multiple targets

branches/try2/src/compiletest/common.rs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,10 @@ impl fmt::Show for Mode {
5656
#[deriving(Clone)]
5757
pub struct Config {
5858
// The library paths required for running the compiler
59-
pub compile_lib_path: StrBuf,
59+
pub compile_lib_path: ~str,
6060

6161
// The library paths required for running compiled programs
62-
pub run_lib_path: StrBuf,
62+
pub run_lib_path: ~str,
6363

6464
// The rustc executable
6565
pub rustc_path: Path,
@@ -80,7 +80,7 @@ pub struct Config {
8080
pub aux_base: Path,
8181

8282
// The name of the stage being built (stage1, etc)
83-
pub stage_id: StrBuf,
83+
pub stage_id: ~str,
8484

8585
// The test mode, compile-fail, run-fail, run-pass
8686
pub mode: Mode,
@@ -110,37 +110,37 @@ pub struct Config {
110110

111111
// A command line to prefix program execution with,
112112
// for running under valgrind
113-
pub runtool: Option<StrBuf>,
113+
pub runtool: Option<~str>,
114114

115115
// Flags to pass to the compiler when building for the host
116-
pub host_rustcflags: Option<StrBuf>,
116+
pub host_rustcflags: Option<~str>,
117117

118118
// Flags to pass to the compiler when building for the target
119-
pub target_rustcflags: Option<StrBuf>,
119+
pub target_rustcflags: Option<~str>,
120120

121121
// Run tests using the JIT
122122
pub jit: bool,
123123

124124
// Target system to be tested
125-
pub target: StrBuf,
125+
pub target: ~str,
126126

127127
// Host triple for the compiler being invoked
128-
pub host: StrBuf,
128+
pub host: ~str,
129129

130130
// Path to the android tools
131131
pub android_cross_path: Path,
132132

133133
// Extra parameter to run adb on arm-linux-androideabi
134-
pub adb_path: StrBuf,
134+
pub adb_path: ~str,
135135

136136
// Extra parameter to run test sute on arm-linux-androideabi
137-
pub adb_test_dir: StrBuf,
137+
pub adb_test_dir: ~str,
138138

139139
// status whether android device available or not
140140
pub adb_device_status: bool,
141141

142142
// the path containing LLDB's Python module
143-
pub lldb_python_dir: Option<StrBuf>,
143+
pub lldb_python_dir: Option<~str>,
144144

145145
// Explain what's going on
146146
pub verbose: bool

0 commit comments

Comments
 (0)