Skip to content

Commit 7606b3a

Browse files
committed
---
yaml --- r: 151451 b: refs/heads/try2 c: c0a25e4 h: refs/heads/master i: 151449: d58cf14 151447: 1845e37 v: v3
1 parent 755e97b commit 7606b3a

File tree

793 files changed

+25433
-26452
lines changed

Some content is hidden

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

793 files changed

+25433
-26452
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: 49efab8ac9044e2cb8ea31ac16fa088af88faf4d
8+
refs/heads/try2: c0a25e4fdc1fcdde8378b4177a6f06c58001a3be
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try2/.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,6 @@
1212
[submodule "src/compiler-rt"]
1313
path = src/compiler-rt
1414
url = https://github.com/rust-lang/compiler-rt.git
15+
[submodule "src/rt/hoedown"]
16+
path = src/rt/hoedown
17+
url = https://github.com/rust-lang/hoedown.git

branches/try2/configure

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -466,6 +466,26 @@ probe CFG_PDFLATEX pdflatex
466466
probe CFG_XELATEX xelatex
467467
probe CFG_LUALATEX lualatex
468468
probe CFG_GDB gdb
469+
probe CFG_LLDB lldb
470+
471+
if [ ! -z "$CFG_LLDB" ]
472+
then
473+
# If CFG_LLDB_PYTHON_DIR is not already set from the outside and valid, try to read it from
474+
# LLDB via the -P commandline options.
475+
if [ -z "$CFG_LLDB_PYTHON_DIR" ] || [ ! -d "$CFG_LLDB_PYTHON_DIR" ]
476+
then
477+
CFG_LLDB_PYTHON_DIR=$($CFG_LLDB -P)
478+
479+
# If CFG_LLDB_PYTHON_DIR is not a valid directory, set it to something more readable
480+
if [ ! -d "$CFG_LLDB_PYTHON_DIR" ]
481+
then
482+
CFG_LLDB_PYTHON_DIR="LLDB_PYTHON_DIRECTORY_NOT_FOUND"
483+
fi
484+
485+
putvar CFG_LLDB_PYTHON_DIR
486+
fi
487+
fi
488+
469489
if [ "$CFG_OSTYPE" = "unknown-linux-gnu" ]
470490
then
471491
probe CFG_PAXCTL paxctl /sbin/paxctl
@@ -803,10 +823,12 @@ do
803823
make_dir $h/test/run-pass-fulldeps
804824
make_dir $h/test/run-fail
805825
make_dir $h/test/compile-fail
826+
make_dir $h/test/compile-fail-fulldeps
806827
make_dir $h/test/bench
807828
make_dir $h/test/perf
808829
make_dir $h/test/pretty
809-
make_dir $h/test/debug-info
830+
make_dir $h/test/debuginfo-gdb
831+
make_dir $h/test/debuginfo-lldb
810832
make_dir $h/test/codegen
811833
make_dir $h/test/doc-tutorial
812834
make_dir $h/test/doc-guide-ffi

branches/try2/mk/crates.mk

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
# DEPS_<crate>
3939
# These lists are the dependencies of the <crate> that is to be built.
4040
# Rust dependencies are listed bare (i.e. std, green) and native
41-
# dependencies have a "native:" prefix (i.e. native:sundown). All deps
41+
# dependencies have a "native:" prefix (i.e. native:hoedown). All deps
4242
# will be built before the crate itself is built.
4343
#
4444
# TOOL_DEPS_<tool>/TOOL_SOURCE_<tool>
@@ -51,19 +51,20 @@
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
55-
HOST_CRATES := syntax rustc rustdoc fourcc hexfloat regex_macros
54+
workcache url log regex graphviz core
55+
HOST_CRATES := syntax rustc rustdoc fourcc hexfloat regex_macros fmt_macros
5656
CRATES := $(TARGET_CRATES) $(HOST_CRATES)
5757
TOOLS := compiletest rustdoc rustc
5858

59-
DEPS_std := libc native:rustrt native:compiler-rt native:backtrace
59+
DEPS_core :=
60+
DEPS_std := core libc native:rustrt native:compiler-rt native:backtrace
6061
DEPS_green := std rand native:context_switch
6162
DEPS_rustuv := std native:uv native:uv_support
6263
DEPS_native := std
63-
DEPS_syntax := std term serialize collections log
64+
DEPS_syntax := std term serialize collections log fmt_macros
6465
DEPS_rustc := syntax native:rustllvm flate arena serialize sync getopts \
6566
collections time log
66-
DEPS_rustdoc := rustc native:sundown serialize sync getopts collections \
67+
DEPS_rustdoc := rustc native:hoedown serialize sync getopts collections \
6768
test time
6869
DEPS_flate := std native:miniz
6970
DEPS_arena := std collections
@@ -87,6 +88,7 @@ DEPS_workcache := std serialize collections log
8788
DEPS_log := std sync
8889
DEPS_regex := std collections
8990
DEPS_regex_macros = syntax std regex
91+
DEPS_fmt_macros = std
9092

9193
TOOL_DEPS_compiletest := test green rustuv getopts
9294
TOOL_DEPS_rustdoc := rustdoc native
@@ -95,6 +97,8 @@ TOOL_SOURCE_compiletest := $(S)src/compiletest/compiletest.rs
9597
TOOL_SOURCE_rustdoc := $(S)src/driver/driver.rs
9698
TOOL_SOURCE_rustc := $(S)src/driver/driver.rs
9799

100+
ONLY_RLIB_core := 1
101+
98102
################################################################################
99103
# You should not need to edit below this line
100104
################################################################################

branches/try2/mk/dist.mk

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ LICENSE.txt: $(S)COPYRIGHT $(S)LICENSE-APACHE $(S)LICENSE-MIT
3535

3636
PKG_TAR = dist/$(PKG_NAME).tar.gz
3737

38-
PKG_GITMODULES := $(S)src/libuv $(S)src/llvm $(S)src/gyp $(S)src/compiler-rt
38+
PKG_GITMODULES := $(S)src/libuv $(S)src/llvm $(S)src/gyp $(S)src/compiler-rt \
39+
$(S)src/rt/hoedown
3940
PKG_FILES := \
4041
$(S)COPYRIGHT \
4142
$(S)LICENSE-APACHE \

branches/try2/mk/docs.mk

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -141,26 +141,6 @@ doc/footer.inc: $(D)/footer.inc | doc/
141141
@$(call E, cp: $@)
142142
$(Q)cp -a $< $@ 2> /dev/null
143143

144-
doc/FiraSans-Regular.woff: $(D)/FiraSans-Regular.woff | doc/
145-
@$(call E, cp: $@)
146-
$(Q)cp -a $< $@ 2> /dev/null
147-
148-
doc/FiraSans-Medium.woff: $(D)/FiraSans-Medium.woff | doc/
149-
@$(call E, cp: $@)
150-
$(Q)cp -a $< $@ 2> /dev/null
151-
152-
doc/Heuristica-Regular.woff: $(D)/Heuristica-Regular.woff | doc/
153-
@$(call E, cp: $@)
154-
$(Q)cp -a $< $@ 2> /dev/null
155-
156-
doc/Heuristica-Italic.woff: $(D)/Heuristica-Italic.woff | doc/
157-
@$(call E, cp: $@)
158-
$(Q)cp -a $< $@ 2> /dev/null
159-
160-
doc/Heuristica-Bold.woff: $(D)/Heuristica-Bold.woff | doc/
161-
@$(call E, cp: $@)
162-
$(Q)cp -a $< $@ 2> /dev/null
163-
164144
# The (english) documentation for each doc item.
165145

166146
define DEF_SHOULD_BUILD_PDF_DOC

branches/try2/mk/host.mk

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
# $(5) - the name of the crate being processed
1919
define CP_HOST_STAGE_N_CRATE
2020

21+
ifeq ($$(ONLY_RLIB_$(5)),)
2122
$$(HLIB$(2)_H_$(4))/stamp.$(5): \
2223
$$(TLIB$(1)_T_$(3)_H_$(4))/stamp.$(5) \
2324
$$(RUST_DEPS_$(5):%=$$(HLIB$(2)_H_$(4))/stamp.%) \
@@ -30,6 +31,10 @@ $$(HLIB$(2)_H_$(4))/stamp.$(5): \
3031
$$(HLIB$(2)_H_$(4))
3132
$$(call LIST_ALL_OLD_GLOB_MATCHES,\
3233
$$(dir $$@)$$(call CFG_LIB_GLOB_$(3),$(5)))
34+
else
35+
$$(HLIB$(2)_H_$(4))/stamp.$(5):
36+
$$(Q)touch $$@
37+
endif
3338

3439
endef
3540

@@ -54,9 +59,6 @@ endef
5459
# $(4) - the host triple (same as $(3))
5560
define CP_HOST_STAGE_N
5661

57-
$$(HBIN$(2)_H_$(4))/:
58-
@mkdir -p $$@
59-
6062
ifneq ($(CFG_LIBDIR_RELATIVE),bin)
6163
$$(HLIB$(2)_H_$(4))/:
6264
@mkdir -p $$@

branches/try2/mk/prepare.mk

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,8 @@ prepare-host-lib-$(1)-$(2)-$(3)-$(4): prepare-maybe-clean-$(4) \
106106
prepare-host-dirs-$(4)
107107
$$(if $$(findstring $(2), $$(PREPARE_STAGE)),\
108108
$$(if $$(findstring $(3), $$(PREPARE_HOST)),\
109-
$$(call PREPARE_LIB,$$(call CFG_LIB_GLOB_$$(PREPARE_HOST),$(1))),),)
109+
$$(if $$(findstring 1,$$(ONLY_RLIB_$(1))),,\
110+
$$(call PREPARE_LIB,$$(call CFG_LIB_GLOB_$$(PREPARE_HOST),$(1)))),),)
110111
endef
111112

112113

@@ -133,7 +134,8 @@ prepare-target-$(2)-host-$(3)-$(1)-$(4): prepare-maybe-clean-$(4) \
133134
$$(if $$(findstring $(3), $$(PREPARE_HOST)),\
134135
$$(call PREPARE_DIR,$$(PREPARE_WORKING_DEST_LIB_DIR))\
135136
$$(foreach crate,$$(TARGET_CRATES),\
136-
$$(call PREPARE_LIB,$$(call CFG_LIB_GLOB_$(2),$$(crate)))\
137+
$$(if $$(findstring 1, $$(ONLY_RLIB_$$(crate))),,\
138+
$$(call PREPARE_LIB,$$(call CFG_LIB_GLOB_$(2),$$(crate))))\
137139
$$(call PREPARE_LIB,$$(call CFG_RLIB_GLOB,$$(crate))))\
138140
$$(if $$(findstring $(2),$$(CFG_HOST)),\
139141
$$(foreach crate,$$(HOST_CRATES),\

branches/try2/mk/rt.mk

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -35,19 +35,20 @@
3535
# that's per-target so you're allowed to conditionally add files based on the
3636
# target.
3737
################################################################################
38-
NATIVE_LIBS := rustrt sundown uv_support morestack miniz context_switch
38+
NATIVE_LIBS := rustrt hoedown uv_support morestack miniz context_switch
3939

4040
# $(1) is the target triple
4141
define NATIVE_LIBRARIES
4242

43-
NATIVE_DEPS_sundown_$(1) := sundown/src/autolink.c \
44-
sundown/src/buffer.c \
45-
sundown/src/stack.c \
46-
sundown/src/markdown.c \
47-
sundown/html/houdini_href_e.c \
48-
sundown/html/houdini_html_e.c \
49-
sundown/html/html_smartypants.c \
50-
sundown/html/html.c
43+
NATIVE_DEPS_hoedown_$(1) := hoedown/src/autolink.c \
44+
hoedown/src/buffer.c \
45+
hoedown/src/document.c \
46+
hoedown/src/escape.c \
47+
hoedown/src/html.c \
48+
hoedown/src/html_blocks.c \
49+
hoedown/src/html_smartypants.c \
50+
hoedown/src/stack.c \
51+
hoedown/src/version.c
5152
NATIVE_DEPS_uv_support_$(1) := rust_uv.c
5253
NATIVE_DEPS_miniz_$(1) = miniz.c
5354
NATIVE_DEPS_rustrt_$(1) := rust_builtin.c \
@@ -79,7 +80,7 @@ $$(RT_OUTPUT_DIR_$(1))/%.o: $(S)src/rt/%.c $$(MKFILE_DEPS)
7980
@mkdir -p $$(@D)
8081
@$$(call E, compile: $$@)
8182
$$(Q)$$(call CFG_COMPILE_C_$(1), $$@, \
82-
-I $$(S)src/rt/sundown/src -I $$(S)src/rt/sundown/html \
83+
-I $$(S)src/rt/hoedown/src \
8384
-I $$(S)src/libuv/include -I $$(S)src/rt \
8485
$$(RUNTIME_CFLAGS_$(1))) $$<
8586

0 commit comments

Comments
 (0)