Skip to content

Commit 226148d

Browse files
committed
---
yaml --- r: 212167 b: refs/heads/tmp c: 6812ca1 h: refs/heads/master i: 212165: 0e83a56 212163: 87c3351 212159: ccee55b v: v3
1 parent c53e54e commit 226148d

File tree

21 files changed

+546
-885
lines changed

21 files changed

+546
-885
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ refs/heads/building: 126db549b038c84269a1e4fe46f051b2c15d6970
3232
refs/heads/beta: 62e70d35be3fe532c26a400b499c58a18f18dd3a
3333
refs/heads/windistfix: 7608dbad651f02e837ed05eef3d74a6662a6e928
3434
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
35-
refs/heads/tmp: 5b56d73dc0e8b988f91c44fd9f9e40331451796b
35+
refs/heads/tmp: 6812ca1cc8c0dadb87f3866fab217ebe831a1fe1
3636
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
3737
refs/tags/homu-tmp: b77d60adb019bb5de05e884a99f3290ec4694137
3838
refs/heads/gate: 97c84447b65164731087ea82685580cc81424412

branches/tmp/configure

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -582,7 +582,6 @@ valopt sysconfdir "/etc" "install system configuration files"
582582
valopt datadir "${CFG_PREFIX}/share" "install data"
583583
valopt infodir "${CFG_PREFIX}/share/info" "install additional info"
584584
valopt llvm-root "" "set LLVM root"
585-
valopt python "" "set path to python"
586585
valopt jemalloc-root "" "set directory where libjemalloc_pic.a is located"
587586
valopt build "${DEFAULT_BUILD}" "GNUs ./configure syntax LLVM build triple"
588587
valopt android-cross-path "/opt/ndk_standalone" "Android NDK standalone path"
@@ -696,9 +695,7 @@ putvar CFG_BOOTSTRAP_KEY
696695
step_msg "looking for build programs"
697696

698697
probe_need CFG_CURLORWGET curl wget
699-
if [ -z "$CFG_PYTHON_PROVIDED" ]; then
700-
probe_need CFG_PYTHON python2.7 python2.6 python2 python
701-
fi
698+
probe_need CFG_PYTHON python2.7 python2.6 python2 python
702699

703700
python_version=$($CFG_PYTHON -V 2>&1)
704701
if [ $(echo $python_version | grep -c '^Python 2\.[4567]') -ne 1 ]; then
@@ -852,6 +849,13 @@ then
852849
putvar CFG_LOCAL_RUST_ROOT
853850
fi
854851

852+
# Force freebsd to build with clang; gcc doesn't like us there
853+
if [ $CFG_OSTYPE = unknown-freebsd ]
854+
then
855+
step_msg "on FreeBSD, forcing use of clang"
856+
CFG_ENABLE_CLANG=1
857+
fi
858+
855859
# Force bitrig to build with clang; gcc doesn't like us there
856860
if [ $CFG_OSTYPE = unknown-bitrig ]
857861
then
@@ -969,8 +973,8 @@ fi
969973

970974
if [ ! -z "$CFG_ENABLE_CLANG" ]
971975
then
972-
case "$CC" in
973-
(''|*clang)
976+
if [ -z "$CC" ] || [[ $CC == *clang ]]
977+
then
974978
CFG_CLANG_VERSION=$($CFG_CC \
975979
--version \
976980
| grep version \
@@ -990,11 +994,9 @@ then
990994
err "bad CLANG version: $CFG_CLANG_VERSION, need >=3.0svn"
991995
;;
992996
esac
993-
;;
994-
(*)
997+
else
995998
msg "skipping CFG_ENABLE_CLANG version check; provided CC=$CC"
996-
;;
997-
esac
999+
fi
9981000
fi
9991001

10001002
if [ ! -z "$CFG_ENABLE_CCACHE" ]

branches/tmp/mk/debuggers.mk

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@
1515

1616
## GDB ##
1717
DEBUGGER_RUSTLIB_ETC_SCRIPTS_GDB=gdb_load_rust_pretty_printers.py \
18-
gdb_rust_pretty_printing.py \
19-
debugger_pretty_printers_common.py
18+
gdb_rust_pretty_printing.py
2019
DEBUGGER_RUSTLIB_ETC_SCRIPTS_GDB_ABS=\
2120
$(foreach script,$(DEBUGGER_RUSTLIB_ETC_SCRIPTS_GDB), \
2221
$(CFG_SRC_DIR)src/etc/$(script))
@@ -28,8 +27,7 @@ DEBUGGER_BIN_SCRIPTS_GDB_ABS=\
2827

2928

3029
## LLDB ##
31-
DEBUGGER_RUSTLIB_ETC_SCRIPTS_LLDB=lldb_rust_formatters.py \
32-
debugger_pretty_printers_common.py
30+
DEBUGGER_RUSTLIB_ETC_SCRIPTS_LLDB=lldb_rust_formatters.py
3331
DEBUGGER_RUSTLIB_ETC_SCRIPTS_LLDB_ABS=\
3432
$(foreach script,$(DEBUGGER_RUSTLIB_ETC_SCRIPTS_LLDB), \
3533
$(CFG_SRC_DIR)src/etc/$(script))

branches/tmp/mk/docs.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ endef
265265
$(foreach crate,$(CRATES),$(eval $(call DEF_LIB_DOC,$(crate))))
266266

267267
COMPILER_DOC_TARGETS := $(CRATES:%=doc/%/index.html)
268-
ifdef CFG_ENABLE_COMPILER_DOCS
268+
ifdef CFG_COMPILER_DOCS
269269
DOC_TARGETS += $(COMPILER_DOC_TARGETS)
270270
else
271271
DOC_TARGETS += $(DOC_CRATES:%=doc/%/index.html)

branches/tmp/src/doc/trpl/mutability.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ b.x = 10; // error: cannot assign to immutable field `b.x`
159159

160160
[struct]: structs.html
161161

162-
However, by using [`Cell<T>`][cell], you can emulate field-level mutability:
162+
However, by using `Cell<T>`, you can emulate field-level mutability:
163163

164164
```rust
165165
use std::cell::Cell;
@@ -176,6 +176,4 @@ point.y.set(7);
176176
println!("y: {:?}", point.y);
177177
```
178178

179-
[cell]: ../std/cell/struct.Cell.html
180-
181179
This will print `y: Cell { value: 7 }`. We’ve successfully updated `y`.

0 commit comments

Comments
 (0)