Skip to content

Commit 2f791d2

Browse files
committed
---
yaml --- r: 114431 b: refs/heads/master c: e6b23da h: refs/heads/master i: 114429: 6c71b9f 114427: 0cca349 114423: 3327627 114415: e14d8bb 114399: fcae707 114367: 62288a9 114303: 7c3db05 114175: ff0da1d v: v3
1 parent 4b2c0d1 commit 2f791d2

File tree

426 files changed

+4613
-6684
lines changed

Some content is hidden

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

426 files changed

+4613
-6684
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 11aa731b387d1210e239e64aec8ee7e6db9e5faa
2+
refs/heads/master: e6b23da5a25150ecf078d9c402b699c62541c9bd
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: ec0258a381b88b5574e3f8ce72ae553ac3a574b7
55
refs/heads/try: 7c6c492fb2af9a85f21ff952942df3523b22fd17

trunk/CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
If you're just reporting a bug, please see:
44

5-
http://doc.rust-lang.org/complement-bugreport.html
5+
http://static.rust-lang.org/doc/master/complement-bugreport.html
66

77
## Pull request procedure
88

trunk/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ documentation.
1313
> [getting started][wiki-start] notes on the wiki.
1414
1515
[installer]: http://www.rust-lang.org/install.html
16-
[tutorial]: http://doc.rust-lang.org/tutorial.html
16+
[tutorial]: http://static.rust-lang.org/doc/tutorial.html
1717
[wiki-start]: https://github.com/mozilla/rust/wiki/Note-getting-started-developing-Rust
1818
[win-wiki]: https://github.com/mozilla/rust/wiki/Using-Rust-on-Windows
1919

@@ -60,7 +60,7 @@ documentation.
6060

6161
[repo]: https://github.com/mozilla/rust
6262
[tarball]: http://static.rust-lang.org/dist/rust-nightly.tar.gz
63-
[tutorial]: http://doc.rust-lang.org/tutorial.html
63+
[tutorial]: http://static.rust-lang.org/doc/master/tutorial.html
6464

6565
## Notes
6666

trunk/configure

Lines changed: 31 additions & 119 deletions
Original file line numberDiff line numberDiff line change
@@ -223,30 +223,6 @@ opt() {
223223
fi
224224
}
225225

226-
envopt() {
227-
local NAME=$1
228-
local V="CFG_${NAME}"
229-
eval VV=\$$V
230-
231-
# If configure didn't set a value already, then check environment.
232-
#
233-
# (It is recommended that the configure script always check the
234-
# environment before setting any values to envopt variables; see
235-
# e.g. how CFG_CC is handled, where it first checks `-z "$CC"`,
236-
# and issues msg if it ends up employing that provided value.)
237-
if [ -z "$VV" ]
238-
then
239-
eval $V=\$$NAME
240-
eval VV=\$$V
241-
fi
242-
243-
# If script or environment provided a value, save it.
244-
if [ ! -z "$VV" ]
245-
then
246-
putvar $V
247-
fi
248-
}
249-
250226
msg "looking for configure programs"
251227
need_cmd cmp
252228
need_cmd mkdir
@@ -645,7 +621,7 @@ then
645621
if !((chk_cc gcc clang && chk_cc g++ clang) ||
646622
(chk_cc gcc gcc &&( chk_cc g++ g++ || chk g++ gcc))) then
647623
err "the gcc and g++ in your path point to different compilers.
648-
Check which versions are in your path with gcc --version and g++ --version.
624+
Check which versions are in your path with cc --version and g++ --version.
649625
To resolve this problem, either fix your PATH or run configure with --enable-clang"
650626
fi
651627

@@ -670,101 +646,41 @@ then
670646
esac
671647
fi
672648

673-
# Even when the user overrides the choice of CC, still try to detect
674-
# clang to disable some clang-specific warnings. We here draw a
675-
# distinction between:
676-
#
677-
# CFG_ENABLE_CLANG : passed --enable-clang, or host "requires" clang,
678-
# CFG_USING_CLANG : compiler (clang / gcc / $CC) looks like clang.
679-
#
680-
# This distinction is important because there are some safeguards we
681-
# would prefer to skip when merely CFG_USING_CLANG is set; but when
682-
# CFG_ENABLE_CLANG is set, that indicates that we are opting into
683-
# running such safeguards.
684-
685-
if [ ! -z "$CC" ]
686-
then
687-
msg "skipping compiler inference steps; using provided CC=$CC"
688-
CFG_CC="$CC"
689-
690-
CFG_OSX_CC_VERSION=$("$CFG_CC" --version 2>&1 | grep "clang")
691-
if [ $? -eq 0 ]
692-
then
693-
step_msg "note, user-provided CC looks like clang; CC=$CC."
694-
CFG_USING_CLANG=1
695-
putvar CFG_USING_CLANG
696-
fi
697-
else
698-
if [ ! -z "$CFG_ENABLE_CLANG" ]
699-
then
700-
if [ -z "$CFG_CLANG" ]
701-
then
702-
err "clang requested but not found"
703-
fi
704-
CFG_CC="$CFG_CLANG"
705-
CFG_USING_CLANG=1
706-
putvar CFG_USING_CLANG
707-
else
708-
CFG_CC="gcc"
709-
fi
710-
fi
711-
712649
if [ ! -z "$CFG_ENABLE_CLANG" ]
713650
then
714-
if [ -z "$CC" ] || [[ $CC == *clang ]]
651+
if [ -z "$CFG_CLANG" ]
715652
then
716-
CFG_CLANG_VERSION=$($CFG_CC \
717-
--version \
718-
| grep version \
719-
| sed 's/.*\(version .*\)/\1/; s/.*based on \(LLVM .*\))/\1/' \
720-
| cut -d ' ' -f 2)
721-
722-
case $CFG_CLANG_VERSION in
723-
(3.0svn | 3.0 | 3.1* | 3.2* | 3.3* | 3.4* | 3.5* )
724-
step_msg "found ok version of CLANG: $CFG_CLANG_VERSION"
725-
if [ -z "$CC" ]
726-
then
727-
CFG_CC="clang"
728-
fi
729-
;;
730-
(*)
731-
err "bad CLANG version: $CFG_CLANG_VERSION, need >=3.0svn"
732-
;;
733-
esac
734-
else
735-
msg "skipping CFG_ENABLE_CLANG version check; provided CC=$CC"
653+
err "clang requested but not found"
736654
fi
655+
CFG_CLANG_VERSION=$("$CFG_CLANG" \
656+
--version \
657+
| grep version \
658+
| sed 's/.*\(version .*\)/\1/; s/.*based on \(LLVM .*\))/\1/' \
659+
| cut -d ' ' -f 2)
660+
661+
case $CFG_CLANG_VERSION in
662+
(3.0svn | 3.0 | 3.1* | 3.2* | 3.3* | 3.4* | 3.5* )
663+
step_msg "found ok version of CLANG: $CFG_CLANG_VERSION"
664+
CFG_C_COMPILER="clang"
665+
;;
666+
(*)
667+
err "bad CLANG version: $CFG_CLANG_VERSION, need >=3.0svn"
668+
;;
669+
esac
670+
else
671+
CFG_C_COMPILER="gcc"
737672
fi
738673

739674
if [ ! -z "$CFG_ENABLE_CCACHE" ]
740675
then
741-
if [ -z "$CC" ]
676+
if [ -z "$CFG_CCACHE" ]
742677
then
743-
if [ -z "$CFG_CCACHE" ]
744-
then
745-
err "ccache requested but not found"
746-
fi
747-
748-
CFG_CC="ccache $CFG_CC"
678+
err "ccache requested but not found"
749679
fi
750-
fi
751680

752-
if [ -z "$CC" -a -z "$CFG_ENABLE_CLANG" -a -z "$CFG_GCC" ]
753-
then
754-
err "either clang or gcc is required"
681+
CFG_C_COMPILER="ccache $CFG_C_COMPILER"
755682
fi
756683

757-
# All safeguards based on $CFG_ENABLE_CLANG should occur before this
758-
# point in the script; after this point, script logic should inspect
759-
# $CFG_USING_CLANG rather than $CFG_ENABLE_CLANG.
760-
761-
# Set CFG_{CC,CXX,CPP,CFLAGS,CXXFLAGS}
762-
envopt CC
763-
envopt CXX
764-
envopt CPP
765-
envopt CFLAGS
766-
envopt CXXFLAGS
767-
768684
# a little post-processing of various config values
769685
CFG_PREFIX=${CFG_PREFIX%/}
770686
CFG_MANDIR=${CFG_MANDIR%/}
@@ -826,6 +742,11 @@ do
826742
esac
827743
done
828744

745+
if [ -z "$CFG_ENABLE_CLANG" -a -z "$CFG_GCC" ]
746+
then
747+
err "either clang or gcc is required"
748+
fi
749+
829750
if [ ! -z "$CFG_PERF" ]
830751
then
831752
HAVE_PERF_LOGFD=`$CFG_PERF stat --log-fd 2>&1 | grep 'unknown option'`
@@ -1040,7 +961,7 @@ do
1040961
;;
1041962
esac
1042963

1043-
case "$CFG_CC" in
964+
case "$CFG_C_COMPILER" in
1044965
("ccache clang")
1045966
LLVM_CXX_32="ccache clang++ -m32 -Qunused-arguments"
1046967
LLVM_CC_32="ccache clang -m32 -Qunused-arguments"
@@ -1070,16 +991,6 @@ do
1070991

1071992
LLVM_CXX_64="g++"
1072993
LLVM_CC_64="gcc"
1073-
;;
1074-
1075-
(*)
1076-
msg "inferring LLVM_CXX/CC from CXX/CC = $CXX/$CC"
1077-
LLVM_CXX_32="$CXX -m32"
1078-
LLVM_CC_32="$CC -m32"
1079-
1080-
LLVM_CXX_64="$CXX"
1081-
LLVM_CC_64="$CC"
1082-
;;
1083994
esac
1084995

1085996
LLVM_CFLAGS_32="-m32"
@@ -1162,6 +1073,7 @@ putvar CFG_PREFIX
11621073
putvar CFG_BUILD
11631074
putvar CFG_HOST
11641075
putvar CFG_TARGET
1076+
putvar CFG_C_COMPILER
11651077
putvar CFG_LIBDIR
11661078
putvar CFG_LIBDIR_RELATIVE
11671079
putvar CFG_DISABLE_MANAGE_SUBMODULES
@@ -1172,7 +1084,7 @@ putvar CFG_DISABLE_INJECT_STD_VERSION
11721084

11731085
# Avoid spurious warnings from clang by feeding it original source on
11741086
# ccache-miss rather than preprocessed input.
1175-
if [ ! -z "$CFG_ENABLE_CCACHE" ] && [ ! -z "$CFG_USING_CLANG" ]
1087+
if [ ! -z "$CFG_ENABLE_CCACHE" ] && [ ! -z "$CFG_ENABLE_CLANG" ]
11761088
then
11771089
CFG_CCACHE_CPP2=1
11781090
putvar CFG_CCACHE_CPP2

trunk/mk/docs.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ doc/footer.tex: $(D)/footer.inc | doc/
156156
# HTML (rustdoc)
157157
DOC_TARGETS += doc/not_found.html
158158
doc/not_found.html: $(D)/not_found.md $(HTML_DEPS) | doc/
159-
$(RUSTDOC) $(RUSTDOC_HTML_OPTS_NO_CSS) --markdown-css http://doc.rust-lang.org/rust.css $<
159+
$(RUSTDOC) $(RUSTDOC_HTML_OPTS_NO_CSS) --markdown-css http://static.rust-lang.org/doc/master/rust.css $<
160160

161161
define DEF_DOC
162162

0 commit comments

Comments
 (0)