Skip to content

Commit efc96c3

Browse files
committed
---
yaml --- r: 92110 b: refs/heads/auto c: 3cc86d8 h: refs/heads/master v: v3
1 parent 061b1e4 commit efc96c3

File tree

932 files changed

+22062
-17613
lines changed

Some content is hidden

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

932 files changed

+22062
-17613
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
1313
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1414
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1515
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
16-
refs/heads/auto: d902e7148bbc2559453d22e7d00f05cee9a3df95
16+
refs/heads/auto: 3cc86d8ab3efe7d2fc23cc31e59575b0ad2d077d
1717
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1818
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1919
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336

branches/auto/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,3 +89,4 @@ config.stamp
8989
src/etc/dl
9090
.settings/
9191
build/
92+
i686-pc-mingw32/

branches/auto/Makefile.in

Lines changed: 33 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,15 @@ ifndef DEBUG_BORROWS
130130
RUSTFLAGS_STAGE2 += -Z no-debug-borrows
131131
endif
132132

133+
# The executables crated during this compilation process have no need to include
134+
# static copies of libstd and libextra. We also generate dynamic versions of all
135+
# libraries, so in the interest of space, prefer dynamic linking throughout the
136+
# compilation process.
137+
RUSTFLAGS_STAGE0 += -Z prefer-dynamic
138+
RUSTFLAGS_STAGE1 += -Z prefer-dynamic
139+
RUSTFLAGS_STAGE2 += -Z prefer-dynamic
140+
RUSTFLAGS_STAGE3 += -Z prefer-dynamic
141+
133142
# platform-specific auto-configuration
134143
include $(CFG_SRC_DIR)mk/platform.mk
135144

@@ -214,7 +223,7 @@ GENERATED :=
214223

215224
define DEF_LIBS
216225

217-
CFG_RUNTIME_$(1) :=$(call CFG_LIB_NAME_$(1),rustrt)
226+
CFG_RUNTIME_$(1) :=$(call CFG_STATIC_LIB_NAME_$(1),rustrt)
218227
CFG_RUSTLLVM_$(1) :=$(call CFG_LIB_NAME_$(1),rustllvm)
219228
CFG_STDLIB_$(1) :=$(call CFG_LIB_NAME_$(1),std)
220229
CFG_EXTRALIB_$(1) :=$(call CFG_LIB_NAME_$(1),extra)
@@ -239,6 +248,10 @@ LIBRUSTPKG_DSYM_GLOB_$(1) :=$(call CFG_LIB_DSYM_GLOB_$(1),rustpkg)
239248
LIBRUSTDOC_DSYM_GLOB_$(1) :=$(call CFG_LIB_DSYM_GLOB_$(1),rustdoc)
240249
LIBRUSTUV_DSYM_GLOB_$(1) :=$(call CFG_LIB_DSYM_GLOB_$(1),rustuv)
241250

251+
EXTRALIB_RGLOB_$(1) :=$(call CFG_RLIB_GLOB,extra)
252+
STDLIB_RGLOB_$(1) :=$(call CFG_RLIB_GLOB,std)
253+
LIBRUSTUV_RGLOB_$(1) :=$(call CFG_RLIB_GLOB,rustuv)
254+
242255
endef
243256

244257
# $(1) is the path for directory to match against
@@ -392,42 +405,25 @@ TBIN$(1)_T_$(2)_H_$(3) = $$(TROOT$(1)_T_$(2)_H_$(3))/bin
392405
TLIB$(1)_T_$(2)_H_$(3) = $$(TROOT$(1)_T_$(2)_H_$(3))/$$(CFG_LIBDIR)
393406

394407
# The name of the standard and extra libraries used by rustc
395-
ifdef CFG_DISABLE_SHAREDSTD
396-
HSTDLIB_DEFAULT$(1)_H_$(3) = \
397-
$$(HLIB$(1)_H_$(3))/libstd.rlib
398-
TSTDLIB_DEFAULT$(1)_T_$(2)_H_$(3) = \
399-
$$(TLIB$(1)_T_$(2)_H_$(3))/libstd.rlib
400-
401-
HEXTRALIB_DEFAULT$(1)_H_$(3) = \
402-
$$(HLIB$(1)_H_$(3))/libextra.rlib
403-
TEXTRALIB_DEFAULT$(1)_T_$(2)_H_$(3) = \
404-
$$(TLIB$(1)_T_$(2)_H_$(3))/libextra.rlib
405-
406-
HLIBRUSTC_DEFAULT$(1)_H_$(3) = \
407-
$$(HLIB$(1)_H_$(3))/librustc.rlib
408-
TLIBRUSTC_DEFAULT$(1)_T_$(2)_H_$(3) = \
409-
$$(TLIB$(1)_T_$(2)_H_$(3))/librustc.rlib
410-
else
411-
HSTDLIB_DEFAULT$(1)_H_$(3) = \
412-
$$(HLIB$(1)_H_$(3))/$(CFG_STDLIB_$(3))
413-
TSTDLIB_DEFAULT$(1)_T_$(2)_H_$(3) = \
414-
$$(TLIB$(1)_T_$(2)_H_$(3))/$(CFG_STDLIB_$(2))
415-
416-
HEXTRALIB_DEFAULT$(1)_H_$(3) = \
417-
$$(HLIB$(1)_H_$(3))/$(CFG_EXTRALIB_$(3))
418-
TEXTRALIB_DEFAULT$(1)_T_$(2)_H_$(3) = \
419-
$$(TLIB$(1)_T_$(2)_H_$(3))/$(CFG_EXTRALIB_$(2))
420-
421-
HLIBRUSTC_DEFAULT$(1)_H_$(3) = \
422-
$$(HLIB$(1)_H_$(3))/$(CFG_LIBRUSTC_$(3))
423-
TLIBRUSTC_DEFAULT$(1)_T_$(2)_H_$(3) = \
424-
$$(TLIB$(1)_T_$(2)_H_$(3))/$(CFG_LIBRUSTC_$(2))
425-
426-
HLIBRUSTUV_DEFAULT$(1)_H_$(3) = \
427-
$$(HLIB$(1)_H_$(3))/$(CFG_LIBRUSTUV_$(3))
428-
TLIBRUSTUV_DEFAULT$(1)_T_$(2)_H_$(3) = \
429-
$$(TLIB$(1)_T_$(2)_H_$(3))/$(CFG_LIBRUSTUV_$(2))
430-
endif
408+
HSTDLIB_DEFAULT$(1)_H_$(3) = \
409+
$$(HLIB$(1)_H_$(3))/$(CFG_STDLIB_$(3))
410+
TSTDLIB_DEFAULT$(1)_T_$(2)_H_$(3) = \
411+
$$(TLIB$(1)_T_$(2)_H_$(3))/$(CFG_STDLIB_$(2))
412+
413+
HEXTRALIB_DEFAULT$(1)_H_$(3) = \
414+
$$(HLIB$(1)_H_$(3))/$(CFG_EXTRALIB_$(3))
415+
TEXTRALIB_DEFAULT$(1)_T_$(2)_H_$(3) = \
416+
$$(TLIB$(1)_T_$(2)_H_$(3))/$(CFG_EXTRALIB_$(2))
417+
418+
HLIBRUSTC_DEFAULT$(1)_H_$(3) = \
419+
$$(HLIB$(1)_H_$(3))/$(CFG_LIBRUSTC_$(3))
420+
TLIBRUSTC_DEFAULT$(1)_T_$(2)_H_$(3) = \
421+
$$(TLIB$(1)_T_$(2)_H_$(3))/$(CFG_LIBRUSTC_$(2))
422+
423+
HLIBRUSTUV_DEFAULT$(1)_H_$(3) = \
424+
$$(HLIB$(1)_H_$(3))/$(CFG_LIBRUSTUV_$(3))
425+
TLIBRUSTUV_DEFAULT$(1)_T_$(2)_H_$(3) = \
426+
$$(TLIB$(1)_T_$(2)_H_$(3))/$(CFG_LIBRUSTUV_$(2))
431427

432428
# Preqrequisites for using the stageN compiler
433429
HSREQ$(1)_H_$(3) = \

branches/auto/configure

Lines changed: 22 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,6 @@ fi
364364
BOOL_OPTIONS=""
365365
VAL_OPTIONS=""
366366

367-
opt sharedstd 1 "build libstd as a shared library"
368367
opt valgrind 0 "run tests with valgrind (memcheck by default)"
369368
opt helgrind 0 "run tests with helgrind instead of memcheck"
370369
opt docs 1 "build documentation"
@@ -398,7 +397,7 @@ valopt sysconfdir "/etc" "install system configuration files"
398397
valopt datadir "${CFG_PREFIX}/share" "install data"
399398
valopt infodir "${CFG_PREFIX}/share/info" "install additional info"
400399
valopt mandir "${CFG_PREFIX}/share/man" "install man pages in PATH"
401-
valopt libdir "${CFG_PREFIX}/lib" "install libraries"
400+
valopt libdir "${CFG_PREFIX}/lib" "install libraries"
402401

403402
# Validate Options
404403
step_msg "validating $CFG_SELF args"
@@ -520,14 +519,20 @@ then
520519
fi
521520
fi
522521

522+
BIN_SUF=
523+
if [ $CFG_OSTYPE = "pc-mingw32" ]
524+
then
525+
BIN_SUF=.exe
526+
fi
527+
523528
if [ ! -z "$CFG_ENABLE_LOCAL_RUST" ]
524529
then
525-
if [ ! -f ${CFG_LOCAL_RUST_ROOT}/bin/rustc ]
530+
if [ ! -f ${CFG_LOCAL_RUST_ROOT}/bin/rustc${BIN_SUF} ]
526531
then
527532
err "no local rust to use"
528533
else
529-
LRV=`${CFG_LOCAL_RUST_ROOT}/bin/rustc --version`
530-
step_msg "using rustc at: ${CFG_LOCAL_RUST_ROOT} with version: " $LRV
534+
LRV=`${CFG_LOCAL_RUST_ROOT}/bin/rustc${BIN_SUF} --version`
535+
step_msg "using rustc at: ${CFG_LOCAL_RUST_ROOT} with version: $LRV"
531536
fi
532537
fi
533538

@@ -602,7 +607,7 @@ CFG_PREFIX=${CFG_PREFIX%/}
602607
CFG_MANDIR=${CFG_MANDIR%/}
603608
CFG_HOST="$(echo $CFG_HOST | tr ',' ' ')"
604609
CFG_TARGET="$(echo $CFG_TARGET | tr ',' ' ')"
605-
CFG_SUPPORTED_TARGET="$(grep ^CC_*=* $CFG_SRC_DIR/mk/platform.mk | sed -e 's/^CC_//' -e 's/\([^=]*\).*/\1/' | xargs)"
610+
CFG_SUPPORTED_TARGET="$(grep ^CC_*=* ${CFG_SRC_DIR}mk/platform.mk | sed -e 's/^CC_//' -e 's/\([^=]*\).*/\1/' | xargs)"
606611

607612
# copy host-triples to target-triples so that hosts are a subset of targets
608613
V_TEMP=""
@@ -872,6 +877,13 @@ do
872877
# Try to have LLVM pull in as few dependencies as possible (#9397)
873878
LLVM_OPTS="$LLVM_OPTS --disable-zlib --disable-libffi"
874879

880+
# pthreads works badly on mingw-w64 systems: #8996
881+
case "$CFG_BUILD" in
882+
(*w64-mingw32)
883+
LLVM_OPTS="$LLVM_OPTS --disable-pthreads"
884+
;;
885+
esac
886+
875887
case "$CFG_C_COMPILER" in
876888
("ccache clang")
877889
LLVM_CXX_32="ccache clang++ -m32 -Qunused-arguments"
@@ -881,11 +893,11 @@ do
881893
LLVM_CC_64="ccache clang -Qunused-arguments"
882894
;;
883895
("clang")
884-
LLVM_CXX_32="clang++ -m32"
885-
LLVM_CC_32="clang -m32"
896+
LLVM_CXX_32="clang++ -m32 -Qunused-arguments"
897+
LLVM_CC_32="clang -m32 -Qunused-arguments"
886898

887-
LLVM_CXX_64="clang++"
888-
LLVM_CC_64="clang"
899+
LLVM_CXX_64="clang++ -Qunused-arguments"
900+
LLVM_CC_64="clang -Qunused-arguments"
889901
;;
890902
("ccache gcc")
891903
LLVM_CXX_32="ccache g++ -m32"

branches/auto/doc/po/ja/rust.md.po

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1817,10 +1817,10 @@ msgstr ""
18171817
#, no-wrap
18181818
msgid ""
18191819
"~~~~ {.xfail-test}\n"
1820-
"fn iter<T>(seq: &[T], f: &fn(T)) {\n"
1820+
"fn iter<T>(seq: &[T], f: |T|) {\n"
18211821
" for elt in seq.iter() { f(elt); }\n"
18221822
"}\n"
1823-
"fn map<T, U>(seq: &[T], f: &fn(T) -> U) -> ~[U] {\n"
1823+
"fn map<T, U>(seq: &[T], f: |T| -> U) -> ~[U] {\n"
18241824
" let mut acc = ~[];\n"
18251825
" for elt in seq.iter() { acc.push(f(elt)); }\n"
18261826
" acc\n"
@@ -2404,7 +2404,7 @@ msgid ""
24042404
"trait Seq<T> {\n"
24052405
" fn len(&self) -> uint;\n"
24062406
" fn elt_at(&self, n: uint) -> T;\n"
2407-
" fn iter(&self, &fn(T));\n"
2407+
" fn iter(&self, |T|);\n"
24082408
"}\n"
24092409
"~~~~\n"
24102410
msgstr ""
@@ -4243,7 +4243,7 @@ msgid ""
42434243
"[function definitions](#functions) do not. The exact type of capture "
42444244
"depends on the [function type](#function-types) inferred for the lambda "
42454245
"expression. In the simplest and least-expensive form (analogous to a "
4246-
"```&fn() { }``` expression), the lambda expression captures its environment "
4246+
"```|| { }``` expression), the lambda expression captures its environment "
42474247
"by reference, effectively borrowing pointers to all outer variables "
42484248
"mentioned inside the function. Alternately, the compiler may infer that a "
42494249
"lambda expression should copy or move values (depending on their type.) "
@@ -4262,7 +4262,7 @@ msgstr ""
42624262
#, no-wrap
42634263
msgid ""
42644264
"~~~~\n"
4265-
"fn ten_times(f: &fn(int)) {\n"
4265+
"fn ten_times(f: |int|) {\n"
42664266
" let mut i = 0;\n"
42674267
" while i < 10 {\n"
42684268
" f(i);\n"
@@ -4455,7 +4455,7 @@ msgstr ""
44554455

44564456
#. type: Plain text
44574457
#: doc/rust.md:2339
4458-
msgid "~~~~ # fn f(f: &fn(int)) { } # fn g(i: int) { }"
4458+
msgid "~~~~ # fn f(f: |int|) { } # fn g(i: int) { }"
44594459
msgstr ""
44604460

44614461
#. type: Plain text
@@ -4481,7 +4481,7 @@ msgstr ""
44814481

44824482
#. type: Plain text
44834483
#: doc/rust.md:2352
4484-
msgid "~~~~ # fn k(x:int, f: &fn(int)) { } # fn l(i: int) { }"
4484+
msgid "~~~~ # fn k(x:int, f: |int|) { } # fn l(i: int) { }"
44854485
msgstr ""
44864486

44874487
#. type: Plain text
@@ -5383,7 +5383,7 @@ msgstr ""
53835383
#. type: Plain text
53845384
#: doc/rust.md:2849
53855385
msgid ""
5386-
"type Binop<'self> = &'self fn(int,int) -> int; let bo: Binop = add; x = "
5386+
"type Binop<'self> = 'self |int,int| -> int; let bo: Binop = add; x = "
53875387
"bo(5,7); ~~~~~~~~"
53885388
msgstr ""
53895389

@@ -5483,7 +5483,7 @@ msgstr ""
54835483
#, no-wrap
54845484
msgid ""
54855485
"~~~~~~~\n"
5486-
"fn map<A: Clone, B: Clone>(f: &fn(A) -> B, xs: &[A]) -> ~[B] {\n"
5486+
"fn map<A: Clone, B: Clone>(f: |A| -> B, xs: &[A]) -> ~[B] {\n"
54875487
" if xs.len() == 0 {\n"
54885488
" return ~[];\n"
54895489
" }\n"

branches/auto/doc/po/ja/tutorial-tasks.md.po

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ msgstr ""
213213
#. type: Plain text
214214
#: doc/tutorial-tasks.md:102
215215
msgid ""
216-
"The `spawn` function has a very simple type signature: `fn spawn(f: ~fn())`. "
216+
"The `spawn` function has a very simple type signature: `fn spawn(f: proc())`. "
217217
"Because it accepts only owned closures, and owned closures contain only "
218218
"owned data, `spawn` can safely move the entire closure and all its "
219219
"associated state into an entirely different task for execution. Like any "
@@ -529,7 +529,7 @@ msgid ""
529529
"The basic example below illustrates this.\n"
530530
"~~~\n"
531531
"# fn make_a_sandwich() {};\n"
532-
"fn fib(n: uint) -> uint {\n"
532+
"fn fib(n: u64) -> u64 {\n"
533533
" // lengthy computation returning an uint\n"
534534
" 12586269025\n"
535535
"}\n"

0 commit comments

Comments
 (0)