Skip to content

Commit e3989da

Browse files
committed
---
yaml --- r: 79775 b: refs/heads/try c: be4f19a h: refs/heads/master i: 79773: 93f9908 79771: 772dba5 79767: 01b187e 79759: efcf981 79743: fa69469 v: v3
1 parent c7adfa6 commit e3989da

36 files changed

+1082
-1601
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
refs/heads/master: ba9fa89bfb4aae53db93e9ecac31807af96356fc
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 54ae2800ffb30513f89ce13d27ac3c8d095d98ac
5-
refs/heads/try: c891fa326d28818582a653e588463c45f82e5795
5+
refs/heads/try: be4f19ae7c8b72669f1201c5d009e34af2d49228
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c

branches/try/.gitmodules

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,5 @@
44
branch = master
55
[submodule "src/libuv"]
66
path = src/libuv
7-
url = https://github.com/alexcrichton/libuv.git
7+
url = https://github.com/brson/libuv.git
88
branch = master
9-
[submodule "src/gyp"]
10-
path = src/gyp
11-
url = https://git.chromium.org/external/gyp.git

branches/try/configure

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -823,7 +823,7 @@ do
823823
index2="${CFG_SRC_DIR}src/llvm/.git/index"
824824
for index in ${index1} ${index2}
825825
do
826-
config_status="${LLVM_BUILD_DIR}/config.status"
826+
config_status="${CFG_BUILD_DIR}llvm/$t/config.status"
827827
if test -e ${index} -a \
828828
-e ${config_status} -a \
829829
${config_status} -nt ${index}

branches/try/doc/rust.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3385,11 +3385,9 @@ The path to a module consists of the crate name, any parent modules,
33853385
then the module itself, all separated by double colons (`::`). The
33863386
optional log level can be appended to the module path with an equals
33873387
sign (`=`) followed by the log level, from 1 to 4, inclusive. Level 1
3388-
is the error level, 2 is warning, 3 info, and 4 debug. You can also
3389-
use the symbolic constants `error`, `warn`, `info`, and `debug`. Any
3390-
logs less than or equal to the specified level will be output. If not
3391-
specified then log level 4 is assumed. However, debug messages are
3392-
only available if `--cfg=debug` is passed to `rustc`.
3388+
is the error level, 2 is warning, 3 info, and 4 debug. Any logs
3389+
less than or equal to the specified level will be output. If not
3390+
specified then log level 4 is assumed.
33933391

33943392
As an example, to see all the logs generated by the compiler, you would set
33953393
`RUST_LOG` to `rustc`, which is the crate name (as specified in its `link`

branches/try/mk/clean.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ clean-misc:
5050
$(Q)rm -f $(RUSTLLVM_LIB_OBJS) $(RUSTLLVM_OBJS_OBJS) $(RUSTLLVM_DEF)
5151
$(Q)rm -Rf $(DOCS)
5252
$(Q)rm -Rf $(GENERATED)
53-
$(Q)rm -Rf tmp/*
53+
$(Q)rm -f tmp/*
5454
$(Q)rm -Rf rust-stage0-*.tar.bz2 $(PKG_NAME)-*.tar.gz dist
5555
$(Q)rm -Rf $(foreach ext, \
5656
html aux cp fn ky log pdf pg toc tp vr cps, \

branches/try/mk/dist.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ PKG_ICO = $(S)src/etc/pkg/rust-logo.ico
1212
PKG_EXE = $(PKG_DIR)-install.exe
1313
endif
1414

15-
PKG_GITMODULES := $(S)src/libuv $(S)src/llvm $(S)src/gyp
15+
PKG_GITMODULES := $(S)src/libuv $(S)src/llvm
1616

1717
PKG_FILES := \
1818
$(S)COPYRIGHT \

branches/try/mk/rt.mk

Lines changed: 10 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -170,51 +170,36 @@ LIBUV_DEPS := $$(wildcard \
170170
$$(S)src/libuv/*/*/*/*)
171171
endif
172172

173-
LIBUV_MAKEFILE_$(1)_$(2) := $$(CFG_BUILD_DIR)$$(RT_BUILD_DIR_$(1)_$(2))/libuv/Makefile
174-
LIBUV_NO_LOAD = run-benchmarks.target.mk run-tests.target.mk \
175-
uv_dtrace_header.target.mk uv_dtrace_provider.target.mk
176-
177-
export PYTHONPATH := $(PYTHONPATH):$$(S)src/gyp/pylib
178-
179-
$$(LIBUV_MAKEFILE_$(1)_$(2)):
180-
(cd $(S)src/libuv/ && \
181-
./gyp_uv -f make -Dtarget_arch=$$(LIBUV_ARCH_$(1)) -D ninja \
182-
-Goutput_dir=$$(@D) --generator-output $$(@D))
183-
184173
# XXX: Shouldn't need platform-specific conditions here
185174
ifdef CFG_WINDOWSY_$(1)
186175
$$(LIBUV_LIB_$(1)_$(2)): $$(LIBUV_DEPS)
187-
$$(Q)$$(MAKE) -C $$(S)src/libuv -f Makefile.mingw \
188-
CFLAGS="$$(CFG_GCCISH_CFLAGS) $$(LIBUV_FLAGS_$$(HOST_$(1))) $$(SNAP_DEFINES)" \
189-
AR="$$(AR_$(1))" \
176+
$$(Q)$$(MAKE) -C $$(S)src/libuv/ \
177+
builddir_name="$$(CFG_BUILD_DIR)/$$(RT_BUILD_DIR_$(1)_$(2))/libuv" \
178+
OS=mingw \
190179
V=$$(VERBOSE)
191-
$$(Q)cp $$(S)src/libuv/libuv.a $$@
192180
else ifeq ($(OSTYPE_$(1)), linux-androideabi)
193-
$$(LIBUV_LIB_$(1)_$(2)): $$(LIBUV_DEPS) $$(LIBUV_MAKEFILE_$(1)_$(2))
194-
$$(Q)$$(MAKE) -C $$(@D) \
181+
$$(LIBUV_LIB_$(1)_$(2)): $$(LIBUV_DEPS)
182+
$$(Q)$$(MAKE) -C $$(S)src/libuv/ \
195183
CFLAGS="$$(CFG_GCCISH_CFLAGS) $$(LIBUV_FLAGS_$$(HOST_$(1))) $$(SNAP_DEFINES)" \
196184
LDFLAGS="$$(CFG_GCCISH_LINK_FLAGS) $$(LIBUV_FLAGS_$$(HOST_$(1)))" \
197185
CC="$$(CC_$(1))" \
198186
CXX="$$(CXX_$(1))" \
199187
LINK="$$(CXX_$(1))" \
200188
AR="$$(AR_$(1))" \
201189
PLATFORM=android \
202-
host=android OS=linux \
203-
builddir="." \
204190
BUILDTYPE=Release \
205-
NO_LOAD="$$(LIBUV_NO_LOAD)" \
191+
builddir_name="$$(CFG_BUILD_DIR)/$$(RT_BUILD_DIR_$(1)_$(2))/libuv" \
192+
host=android OS=linux \
206193
V=$$(VERBOSE)
207194
else
208-
$$(LIBUV_LIB_$(1)_$(2)): $$(LIBUV_DEPS) $$(LIBUV_MAKEFILE_$(1)_$(2))
209-
$$(Q)$$(MAKE) -C $$(@D) \
195+
$$(LIBUV_LIB_$(1)_$(2)): $$(LIBUV_DEPS)
196+
$$(Q)$$(MAKE) -C $$(S)src/libuv/ \
210197
CFLAGS="$$(CFG_GCCISH_CFLAGS) $$(LIBUV_FLAGS_$$(HOST_$(1))) $$(SNAP_DEFINES)" \
211198
LDFLAGS="$$(CFG_GCCISH_LINK_FLAGS) $$(LIBUV_FLAGS_$$(HOST_$(1)))" \
212199
CC="$$(CC_$(1))" \
213200
CXX="$$(CXX_$(1))" \
214201
AR="$$(AR_$(1))" \
215-
builddir="." \
216-
BUILDTYPE=Release \
217-
NO_LOAD="$$(LIBUV_NO_LOAD)" \
202+
builddir_name="$$(CFG_BUILD_DIR)/$$(RT_BUILD_DIR_$(1)_$(2))/libuv" \
218203
V=$$(VERBOSE)
219204
endif
220205

branches/try/mk/rustllvm.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ define DEF_RUSTLLVM_TARGETS
1919
# llvm, but using it straight out of the build directory)
2020
ifdef CFG_WINDOWSY_$(1)
2121
LLVM_EXTRA_INCDIRS_$(1)= -iquote $(S)src/llvm/include \
22-
-iquote $$(CFG_LLVM_BUILD_DIR_$(1))/include
22+
-iquote llvm/$(1)/include
2323
endif
2424

2525
RUSTLLVM_OBJS_CS_$(1) := $$(addprefix rustllvm/, RustWrapper.cpp PassWrapper.cpp)

branches/try/mk/tests.mk

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,6 @@ tidy:
250250
| grep '^$(S)src/test' -v \
251251
| grep '^$(S)src/libuv' -v \
252252
| grep '^$(S)src/llvm' -v \
253-
| grep '^$(S)src/gyp' -v \
254253
| xargs -n 10 $(CFG_PYTHON) $(S)src/etc/tidy.py
255254
$(Q)find $(S)src/etc -name '*.py' \
256255
| xargs -n 10 $(CFG_PYTHON) $(S)src/etc/tidy.py

branches/try/src/etc/emacs/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,12 @@ marking, press x, and ELPA will install the packages for you (under
6868

6969
* or using <kbd>M-x package-install rust-mode
7070

71+
### Tests via ERT
72+
73+
The file `rust-mode-tests.el` contains tests that can be run via ERT. You can
74+
use `run_rust_emacs_tests.sh` to run them in batch mode, if emacs is somewhere
75+
in your `$PATH`.
76+
7177
### Known bugs
7278

7379
* Combining `global-whitespace-mode` and `rust-mode` is generally glitchy.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# This runs the test for emacs rust-mode.
2+
# It must be possible to find emacs via PATH.
3+
emacs -batch -l rust-mode.el -l rust-mode-tests.el -f ert-run-tests-batch-and-exit

0 commit comments

Comments
 (0)