Skip to content

Commit 586d4cb

Browse files
committed
---
yaml --- r: 274746 b: refs/heads/stable c: 1de70d3 h: refs/heads/master
1 parent 9f8b6c6 commit 586d4cb

File tree

184 files changed

+3588
-1888
lines changed

Some content is hidden

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

184 files changed

+3588
-1888
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ refs/heads/tmp: e06d2ad9fcd5027bcaac5b08fc9aa39a49d0ecd3
2929
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
3030
refs/tags/homu-tmp: c0221c8897db309a79990367476177b1230bb264
3131
refs/tags/1.0.0-beta: 8cbb92b53468ee2b0c2d3eeb8567005953d40828
32-
refs/heads/stable: 3df40c09ec5efb74e16c3da84fef6ce142dae73a
32+
refs/heads/stable: 1de70d33f7baf12978cfb3de861e61b2a5d6fca7
3333
refs/tags/1.0.0: 55bd4f8ff2b323f317ae89e254ce87162d52a375
3434
refs/tags/1.1.0: bc3c16f09287e5545c1d3f76b7abd54f2eca868b
3535
refs/tags/1.2.0: f557861f822c34f07270347b94b5280de20a597e

branches/stable/configure

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1305,6 +1305,12 @@ $ pacman -R cmake && pacman -S mingw-w64-x86_64-cmake
13051305
putvar CFG_DISABLE_JEMALLOC
13061306
;;
13071307

1308+
*-emscripten)
1309+
step_msg "targeting emscripten, disabling jemalloc"
1310+
CFG_DISABLE_JEMALLOC=1
1311+
putvar CFG_DISABLE_JEMALLOC
1312+
;;
1313+
13081314
*)
13091315
;;
13101316
esac

branches/stable/man/rustc.1

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@ rustc \- The Rust compiler
66
[\fIOPTIONS\fR] \fIINPUT\fR
77

88
.SH DESCRIPTION
9-
This program is a compiler for the Rust language, available at
10-
.UR https://www.rust\-lang.org
11-
.UE .
9+
This program is a compiler for the Rust language, available at https://www.rust\-lang.org.
1210

1311
.SH OPTIONS
1412

@@ -298,10 +296,7 @@ To build an executable with debug info:
298296
.BR rustdoc (1)
299297

300298
.SH "BUGS"
301-
See
302-
.UR https://github.com/rust\-lang/rust/issues
303-
.UE
304-
for issues.
299+
See https://github.com/rust\-lang/rust/issues for issues.
305300

306301
.SH "AUTHOR"
307302
See \fIAUTHORS.txt\fR in the Rust source distribution.

branches/stable/man/rustdoc.1

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,8 @@ rustdoc \- generate documentation from Rust source code
88
.SH DESCRIPTION
99
This tool generates API reference documentation by extracting comments from
1010
source code written in the Rust language, available at
11-
.UR https://www.rust\-lang.org
12-
.UE .
13-
It accepts several input formats and provides several output formats
14-
for the generated documentation.
11+
<\fBhttps://www.rust-lang.org\fR>. It accepts several input formats and
12+
provides several output formats for the generated documentation.
1513

1614
.SH OPTIONS
1715

@@ -131,9 +129,7 @@ The generated HTML can be viewed with any standard web browser.
131129
.BR rustc (1)
132130

133131
.SH "BUGS"
134-
See
135-
.UR https://github.com/rust\-lang/rust/issues
136-
.UE
132+
See <\fBhttps://github.com/rust\-lang/rust/issues\fR>
137133
for issues.
138134

139135
.SH "AUTHOR"
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# asmjs-unknown-emscripten configuration
2+
CC_asmjs-unknown-emscripten=emcc
3+
CXX_asmjs-unknown-emscripten=em++
4+
CPP_asmjs-unknown-emscripten=$(CPP)
5+
AR_asmjs-unknown-emscripten=emar
6+
CFG_LIB_NAME_asmjs-unknown-emscripten=lib$(1).so
7+
CFG_STATIC_LIB_NAME_asmjs-unknown-emscripten=lib$(1).a
8+
CFG_LIB_GLOB_asmjs-unknown-emscripten=lib$(1)-*.so
9+
CFG_LIB_DSYM_GLOB_asmjs-unknown-emscripten=lib$(1)-*.dylib.dSYM
10+
CFG_JEMALLOC_CFLAGS_asmjs-unknown-emscripten := -m32 $(CFLAGS)
11+
CFG_GCCISH_CFLAGS_asmjs-unknown-emscripten := -Wall -Werror -g -fPIC -m32 $(CFLAGS)
12+
CFG_GCCISH_CXXFLAGS_asmjs-unknown-emscripten := -fno-rtti $(CXXFLAGS)
13+
CFG_GCCISH_LINK_FLAGS_asmjs-unknown-emscripten := -shared -fPIC -ldl -pthread -lrt -g -m32
14+
CFG_GCCISH_DEF_FLAG_asmjs-unknown-emscripten := -Wl,--export-dynamic,--dynamic-list=
15+
CFG_LLC_FLAGS_asmjs-unknown-emscripten :=
16+
CFG_INSTALL_NAME_asmjs-unknown-emscripten =
17+
CFG_EXE_SUFFIX_asmjs-unknown-emscripten =
18+
CFG_WINDOWSY_asmjs-unknown-emscripten :=
19+
CFG_UNIXY_asmjs-unknown-emscripten := 1
20+
CFG_LDPATH_asmjs-unknown-emscripten :=
21+
CFG_RUN_asmjs-unknown-emscripten=$(2)
22+
CFG_RUN_TARG_asmjs-unknown-emscripten=$(call CFG_RUN_asmjs-unknown-emscripten,,$(2))
23+
CFG_GNU_TRIPLE_asmjs-unknown-emscripten := asmjs-unknown-emscripten
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# i686-unknown-linux-musl configuration
2+
CC_i686-unknown-linux-musl=$(CFG_MUSL_ROOT)/bin/musl-gcc
3+
CXX_i686-unknown-linux-musl=notaprogram
4+
CPP_i686-unknown-linux-musl=$(CFG_MUSL_ROOT)/bin/musl-gcc -E
5+
AR_i686-unknown-linux-musl=$(AR)
6+
CFG_INSTALL_ONLY_RLIB_i686-unknown-linux-musl = 1
7+
CFG_LIB_NAME_i686-unknown-linux-musl=lib$(1).so
8+
CFG_STATIC_LIB_NAME_i686-unknown-linux-musl=lib$(1).a
9+
CFG_LIB_GLOB_i686-unknown-linux-musl=lib$(1)-*.so
10+
CFG_JEMALLOC_CFLAGS_i686-unknown-linux-musl := -m32 -Wl,-melf_i386
11+
CFG_GCCISH_CFLAGS_i686-unknown-linux-musl := -Wall -Werror -g -fPIC -m32 -Wl,-melf_i386
12+
CFG_GCCISH_CXXFLAGS_i686-unknown-linux-musl :=
13+
CFG_GCCISH_LINK_FLAGS_i686-unknown-linux-musl :=
14+
CFG_GCCISH_DEF_FLAG_i686-unknown-linux-musl :=
15+
CFG_LLC_FLAGS_i686-unknown-linux-musl :=
16+
CFG_INSTALL_NAME_i686-unknown-linux-musl =
17+
CFG_EXE_SUFFIX_i686-unknown-linux-musl =
18+
CFG_WINDOWSY_i686-unknown-linux-musl :=
19+
CFG_UNIXY_i686-unknown-linux-musl := 1
20+
CFG_LDPATH_i686-unknown-linux-musl :=
21+
CFG_RUN_i686-unknown-linux-musl=$(2)
22+
CFG_RUN_TARG_i686-unknown-linux-musl=$(call CFG_RUN_i686-unknown-linux-musl,,$(2))
23+
CFG_GNU_TRIPLE_i686-unknown-linux-musl := i686-unknown-linux-musl
24+
CFG_THIRD_PARTY_OBJECTS_i686-unknown-linux-musl := crt1.o crti.o crtn.o
25+
CFG_INSTALLED_OBJECTS_i686-unknown-linux-musl := crt1.o crti.o crtn.o
26+
27+
NATIVE_DEPS_libc_T_i686-unknown-linux-musl += libc.a
28+
NATIVE_DEPS_std_T_i686-unknown-linux-musl += libunwind.a crt1.o crti.o crtn.o

branches/stable/mk/crates.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ DEPS_rustc_passes := syntax rustc core rustc_front
106106
DEPS_rustc_mir := rustc rustc_front syntax
107107
DEPS_rustc_resolve := arena rustc rustc_front log syntax
108108
DEPS_rustc_platform_intrinsics := rustc rustc_llvm
109-
DEPS_rustc_plugin := rustc rustc_metadata syntax
109+
DEPS_rustc_plugin := rustc rustc_metadata syntax rustc_mir
110110
DEPS_rustc_privacy := rustc rustc_front log syntax
111111
DEPS_rustc_trans := arena flate getopts graphviz libc rustc rustc_back rustc_mir \
112112
log syntax serialize rustc_llvm rustc_front rustc_platform_intrinsics

branches/stable/mk/main.mk

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -361,6 +361,9 @@ export CFG_DISABLE_UNSTABLE_FEATURES
361361
export RUSTC_BOOTSTRAP_KEY:=$(CFG_BOOTSTRAP_KEY)
362362
endif
363363
export CFG_BOOTSTRAP_KEY
364+
ifdef CFG_MUSL_ROOT
365+
export CFG_MUSL_ROOT
366+
endif
364367

365368
######################################################################
366369
# Per-stage targets and runner

branches/stable/mk/rt.mk

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,15 @@ ifeq ($$(findstring freebsd,$(1)),freebsd)
254254
COMPRT_CFLAGS_$(1) += -I/usr/include/c++/v1
255255
endif
256256

257+
ifeq ($$(findstring emscripten,$(1)),emscripten)
258+
259+
# FIXME: emscripten doesn't use compiler-rt and can't build it without
260+
# further hacks
261+
$$(COMPRT_LIB_$(1)):
262+
touch $$@
263+
264+
else
265+
257266
$$(COMPRT_LIB_$(1)): $$(COMPRT_DEPS) $$(MKFILE_DEPS)
258267
@$$(call E, make: compiler-rt)
259268
$$(Q)$$(MAKE) -C "$(S)src/compiler-rt" \
@@ -266,7 +275,10 @@ $$(COMPRT_LIB_$(1)): $$(COMPRT_DEPS) $$(MKFILE_DEPS)
266275
TargetTriple=$(1) \
267276
triple-builtins
268277
$$(Q)cp $$(COMPRT_BUILD_DIR_$(1))/triple/builtins/libcompiler_rt.a $$@
278+
279+
endif # if emscripten
269280
endif
281+
270282
################################################################################
271283
# libbacktrace
272284
#
@@ -301,6 +313,12 @@ $$(BACKTRACE_LIB_$(1)):
301313
touch $$@
302314
else
303315

316+
ifeq ($$(findstring emscripten,$(1)),emscripten)
317+
# FIXME: libbacktrace doesn't understand the emscripten triple
318+
$$(BACKTRACE_LIB_$(1)):
319+
touch $$@
320+
else
321+
304322
ifdef CFG_ENABLE_FAST_MAKE
305323
BACKTRACE_DEPS := $(S)/.gitmodules
306324
else
@@ -348,6 +366,7 @@ $$(BACKTRACE_LIB_$(1)): $$(BACKTRACE_BUILD_DIR_$(1))/Makefile $$(MKFILE_DEPS)
348366
INCDIR=$(S)src/libbacktrace
349367
$$(Q)cp $$(BACKTRACE_BUILD_DIR_$(1))/.libs/libbacktrace.a $$@
350368

369+
endif # endif for emscripten
351370
endif # endif for msvc
352371
endif # endif for ios
353372
endif # endif for darwin

branches/stable/src/compiletest/runtest.rs

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1357,7 +1357,12 @@ fn make_lib_name(config: &Config, auxfile: &Path, testfile: &Path) -> PathBuf {
13571357

13581358
fn make_exe_name(config: &Config, testfile: &Path) -> PathBuf {
13591359
let mut f = output_base_name(config, testfile);
1360-
if !env::consts::EXE_SUFFIX.is_empty() {
1360+
// FIXME: This is using the host architecture exe suffix, not target!
1361+
if config.target == "asmjs-unknown-emscripten" {
1362+
let mut fname = f.file_name().unwrap().to_os_string();
1363+
fname.push(".js");
1364+
f.set_file_name(&fname);
1365+
} else if !env::consts::EXE_SUFFIX.is_empty() {
13611366
let mut fname = f.file_name().unwrap().to_os_string();
13621367
fname.push(env::consts::EXE_SUFFIX);
13631368
f.set_file_name(&fname);
@@ -1370,6 +1375,12 @@ fn make_run_args(config: &Config, props: &TestProps, testfile: &Path)
13701375
// If we've got another tool to run under (valgrind),
13711376
// then split apart its command
13721377
let mut args = split_maybe_args(&config.runtool);
1378+
1379+
// If this is emscripten, then run tests under nodejs
1380+
if config.target == "asmjs-unknown-emscripten" {
1381+
args.push("nodejs".to_owned());
1382+
}
1383+
13731384
let exe_file = make_exe_name(config, testfile);
13741385

13751386
// FIXME (#9639): This needs to handle non-utf8 paths

branches/stable/src/compiletest/util.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ const OS_TABLE: &'static [(&'static str, &'static str)] = &[
2626
("win32", "windows"),
2727
("windows", "windows"),
2828
("solaris", "solaris"),
29+
("emscripten", "emscripten"),
2930
];
3031

3132
const ARCH_TABLE: &'static [(&'static str, &'static str)] = &[
@@ -44,6 +45,7 @@ const ARCH_TABLE: &'static [(&'static str, &'static str)] = &[
4445
("sparc", "sparc"),
4546
("x86_64", "x86_64"),
4647
("xcore", "xcore"),
48+
("asmjs", "asmjs"),
4749
];
4850

4951
pub fn get_os(triple: &str) -> &'static str {

0 commit comments

Comments
 (0)