Skip to content

Commit a5cbb88

Browse files
committed
---
yaml --- r: 278109 b: refs/heads/auto c: 099e087 h: refs/heads/master i: 278107: 2e4740b
1 parent 05af899 commit a5cbb88

File tree

1,737 files changed

+43054
-30510
lines changed

Some content is hidden

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

1,737 files changed

+43054
-30510
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
88
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
99
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1010
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
11-
refs/heads/auto: 32edf1d7a81a0db65282374daf846727c8e2a8fd
11+
refs/heads/auto: 099e0879aa00a81411166cde4a0641111cca38aa
1212
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1313
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336
1414
refs/tags/0.2: 1754d02027f2924bed83b0160ee340c7f41d5ea1

branches/auto/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@
7878
/stage3/
7979
/test/
8080
/tmp/
81+
/obj/
8182
TAGS
8283
TAGS.emacs
8384
TAGS.vi

branches/auto/COMPILER_TESTS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ fn test_foo() {
7777
}
7878
```
7979

80-
Note that not all headers have meaning when customized too a revision.
80+
Note that not all headers have meaning when customized to a revision.
8181
For example, the `ignore-test` header (and all "ignore" headers)
8282
currently only apply to the test as a whole, not to particular
8383
revisions. The only headers that are intended to really work when

branches/auto/CONTRIBUTING.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@ which includes important information about what platform you're on, what
7171
version of Rust you're using, etc.
7272

7373
Sometimes, a backtrace is helpful, and so including that is nice. To get
74-
a backtrace, set the `RUST_BACKTRACE` environment variable. The easiest way
74+
a backtrace, set the `RUST_BACKTRACE` environment variable to a value
75+
other than `0`. The easiest way
7576
to do this is to invoke `rustc` like this:
7677

7778
```bash
@@ -306,7 +307,7 @@ are:
306307
[gsearchdocs]: https://www.google.com/search?q=site:doc.rust-lang.org+your+query+here
307308
[rif]: http://internals.rust-lang.org
308309
[rr]: https://doc.rust-lang.org/book/README.html
309-
[tlgba]: http://tomlee.co/2014/04/03/a-more-detailed-tour-of-the-rust-compiler/
310+
[tlgba]: http://tomlee.co/2014/04/a-more-detailed-tour-of-the-rust-compiler/
310311
[ro]: http://www.rustaceans.org/
311312
[rctd]: ./COMPILER_TESTS.md
312313
[cheatsheet]: http://buildbot.rust-lang.org/homu/

branches/auto/Makefile.in

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -214,13 +214,6 @@ include $(CFG_SRC_DIR)mk/debuggers.mk
214214
# Secondary makefiles, conditionalized for speed
215215
######################################################################
216216

217-
# Binary snapshots
218-
ifneq ($(strip $(findstring snap,$(MAKECMDGOALS)) \
219-
$(findstring clean,$(MAKECMDGOALS))),)
220-
CFG_INFO := $(info cfg: including snap rules)
221-
include $(CFG_SRC_DIR)mk/snap.mk
222-
endif
223-
224217
# The test suite
225218
ifneq ($(strip $(findstring check,$(MAKECMDGOALS)) \
226219
$(findstring test,$(MAKECMDGOALS)) \

branches/auto/README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Read ["Installing Rust"] from [The Book].
1616

1717
1. Make sure you have installed the dependencies:
1818

19-
* `g++` 4.7 or `clang++` 3.x
19+
* `g++` 4.7 or later or `clang++` 3.x
2020
* `python` 2.7 (but not 3.x)
2121
* GNU `make` 3.81 or later
2222
* `curl`
@@ -177,10 +177,11 @@ To contribute to Rust, please see [CONTRIBUTING](CONTRIBUTING.md).
177177
Rust has an [IRC] culture and most real-time collaboration happens in a
178178
variety of channels on Mozilla's IRC network, irc.mozilla.org. The
179179
most popular channel is [#rust], a venue for general discussion about
180-
Rust, and a good place to ask for help.
180+
Rust. And a good place to ask for help would be [#rust-beginners].
181181
182182
[IRC]: https://en.wikipedia.org/wiki/Internet_Relay_Chat
183183
[#rust]: irc://irc.mozilla.org/rust
184+
[#rust-beginners]: irc://irc.mozilla.org/rust-beginners
184185
185186
## License
186187

branches/auto/RELEASES.md

Lines changed: 496 additions & 0 deletions
Large diffs are not rendered by default.

branches/auto/configure

Lines changed: 37 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -608,6 +608,8 @@ opt inject-std-version 1 "inject the current compiler version of libstd into pro
608608
opt llvm-version-check 1 "check if the LLVM version is supported, build anyway"
609609
opt rustbuild 0 "use the rust and cargo based build system"
610610
opt orbit 0 "get MIR where it belongs - everywhere; most importantly, in orbit"
611+
opt codegen-tests 1 "run the src/test/codegen tests"
612+
opt option-checking 1 "complain about unrecognized options in this configure script"
611613

612614
# Optimization and debugging options. These may be overridden by the release channel, etc.
613615
opt_nosave optimize 1 "build optimized rust code"
@@ -673,8 +675,11 @@ then
673675
fi
674676

675677
# Validate Options
676-
step_msg "validating $CFG_SELF args"
677-
validate_opt
678+
if [ -z "$CFG_DISABLE_OPTION_CHECKING" ]
679+
then
680+
step_msg "validating $CFG_SELF args"
681+
validate_opt
682+
fi
678683

679684
# Validate the release channel, and configure options
680685
case "$CFG_RELEASE_CHANNEL" in
@@ -716,18 +721,6 @@ if [ -n "$CFG_ENABLE_DEBUG_JEMALLOC" ]; then putvar CFG_ENABLE_DEBUG_JEMALLOC; f
716721

717722
if [ -n "$CFG_ENABLE_ORBIT" ]; then putvar CFG_ENABLE_ORBIT; fi
718723

719-
# A magic value that allows the compiler to use unstable features
720-
# during the bootstrap even when doing so would normally be an error
721-
# because of feature staging or because the build turns on
722-
# warnings-as-errors and unstable features default to warnings. The
723-
# build has to match this key in an env var. Meant to be a mild
724-
# deterrent from users just turning on unstable features on the stable
725-
# channel.
726-
# Basing CFG_BOOTSTRAP_KEY on CFG_BOOTSTRAP_KEY lets it get picked up
727-
# during a Makefile reconfig.
728-
CFG_BOOTSTRAP_KEY="${CFG_BOOTSTRAP_KEY-`date +%H:%M:%S`}"
729-
putvar CFG_BOOTSTRAP_KEY
730-
731724
step_msg "looking for build programs"
732725

733726
probe_need CFG_CURLORWGET curl wget
@@ -830,6 +823,19 @@ then
830823
fi
831824
fi
832825

826+
# LLDB tests on OSX require /usr/bin/python, not something like Homebrew's
827+
# /usr/local/bin/python. We're loading a compiled module for LLDB tests which is
828+
# only compatible with the system.
829+
case $CFG_BUILD in
830+
*-apple-darwin)
831+
CFG_LLDB_PYTHON=/usr/bin/python
832+
;;
833+
*)
834+
CFG_LLDB_PYTHON=$CFG_PYTHON
835+
;;
836+
esac
837+
putvar CFG_LLDB_PYTHON
838+
833839
step_msg "looking for target specific programs"
834840

835841
probe CFG_ADB adb
@@ -1252,7 +1258,7 @@ $ pacman -R cmake && pacman -S mingw-w64-x86_64-cmake
12521258
bits=x86_64
12531259
msvc_part=amd64
12541260
;;
1255-
i686-*)
1261+
i*86-*)
12561262
bits=i386
12571263
msvc_part=
12581264
;;
@@ -1447,6 +1453,19 @@ then
14471453
cd ${CFG_BUILD_DIR}
14481454
fi
14491455

1456+
# Do a sanity check that the submodule source exists. Because GitHub
1457+
# automatically publishes broken tarballs that can't be disabled, and
1458+
# people download them and try to use them.
1459+
if [ ! -e "${CFG_SRC_DIR}/src/liblibc" ]; then
1460+
err "some submodules are missing. Is this a broken tarball?
1461+
1462+
If you downloaded this tarball from the GitHub release pages at
1463+
https://github.com/rust-lang/rust/releases,
1464+
then please delete it and instead download the source from
1465+
https://www.rust-lang.org/downloads.html"
1466+
1467+
fi
1468+
14501469
# Configure llvm, only if necessary
14511470
step_msg "looking at LLVM"
14521471
CFG_LLVM_SRC_DIR=${CFG_SRC_DIR}src/llvm/
@@ -1497,7 +1516,9 @@ do
14971516
LLVM_INST_DIR=$CFG_LLVM_ROOT
14981517
do_reconfigure=0
14991518
# Check that LLVm FileCheck is available. Needed for the tests
1500-
need_cmd $LLVM_INST_DIR/bin/FileCheck
1519+
if [ -z "$CFG_DISABLE_CODEGEN_TESTS" ]; then
1520+
need_cmd $LLVM_INST_DIR/bin/FileCheck
1521+
fi
15011522
fi
15021523

15031524
if [ ${do_reconfigure} -ne 0 ]

branches/auto/man/rustc.1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,15 +268,15 @@ the maximum number of threads used for this purpose.
268268

269269
.TP
270270
\fBRUST_TEST_NOCAPTURE\fR
271-
A synonym for the --nocapture flag.
271+
If set to a value other than "0", a synonym for the --nocapture flag.
272272

273273
.TP
274274
\fBRUST_MIN_STACK\fR
275275
Sets the minimum stack size for new threads.
276276

277277
.TP
278278
\fBRUST_BACKTRACE\fR
279-
If set, produces a backtrace in the output of a program which panics.
279+
If set to a value different than "0", produces a backtrace in the output of a program which panics.
280280

281281
.SH "EXAMPLES"
282282
To build an executable from a source file with a main function:

branches/auto/mk/cfg/i586-pc-windows-msvc.mk

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
# i586-pc-windows-msvc configuration
2-
CC_i586-pc-windows-msvc="$(CFG_MSVC_CL_i386)" -nologo
3-
LINK_i586-pc-windows-msvc="$(CFG_MSVC_LINK_i386)" -nologo
4-
CXX_i586-pc-windows-msvc="$(CFG_MSVC_CL_i386)" -nologo
5-
CPP_i586-pc-windows-msvc="$(CFG_MSVC_CL_i386)" -nologo
6-
AR_i586-pc-windows-msvc="$(CFG_MSVC_LIB_i386)" -nologo
2+
CC_i586-pc-windows-msvc=$(CFG_MSVC_CL_i386)
3+
LINK_i586-pc-windows-msvc=$(CFG_MSVC_LINK_i386)
4+
CXX_i586-pc-windows-msvc=$(CFG_MSVC_CL_i386)
5+
CPP_i586-pc-windows-msvc=$(CFG_MSVC_CL_i386)
6+
AR_i586-pc-windows-msvc=$(CFG_MSVC_LIB_i386)
77
CFG_LIB_NAME_i586-pc-windows-msvc=$(1).dll
88
CFG_STATIC_LIB_NAME_i586-pc-windows-msvc=$(1).lib
99
CFG_LIB_GLOB_i586-pc-windows-msvc=$(1)-*.{dll,lib}
1010
CFG_LIB_DSYM_GLOB_i586-pc-windows-msvc=$(1)-*.dylib.dSYM
1111
CFG_JEMALLOC_CFLAGS_i586-pc-windows-msvc :=
12-
CFG_GCCISH_CFLAGS_i586-pc-windows-msvc := -MD -arch:IA32
13-
CFG_GCCISH_CXXFLAGS_i586-pc-windows-msvc := -MD -arch:IA32
12+
CFG_GCCISH_CFLAGS_i586-pc-windows-msvc := -MD -arch:IA32 -nologo
13+
CFG_GCCISH_CXXFLAGS_i586-pc-windows-msvc := -MD -arch:IA32 -nologo
1414
CFG_GCCISH_LINK_FLAGS_i586-pc-windows-msvc :=
1515
CFG_GCCISH_DEF_FLAG_i586-pc-windows-msvc :=
1616
CFG_LLC_FLAGS_i586-pc-windows-msvc :=

branches/auto/mk/cfg/i686-pc-windows-msvc.mk

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
# i686-pc-windows-msvc configuration
2-
CC_i686-pc-windows-msvc="$(CFG_MSVC_CL_i386)" -nologo
3-
LINK_i686-pc-windows-msvc="$(CFG_MSVC_LINK_i386)" -nologo
4-
CXX_i686-pc-windows-msvc="$(CFG_MSVC_CL_i386)" -nologo
5-
CPP_i686-pc-windows-msvc="$(CFG_MSVC_CL_i386)" -nologo
6-
AR_i686-pc-windows-msvc="$(CFG_MSVC_LIB_i386)" -nologo
2+
CC_i686-pc-windows-msvc=$(CFG_MSVC_CL_i386)
3+
LINK_i686-pc-windows-msvc=$(CFG_MSVC_LINK_i386)
4+
CXX_i686-pc-windows-msvc=$(CFG_MSVC_CL_i386)
5+
CPP_i686-pc-windows-msvc=$(CFG_MSVC_CL_i386)
6+
AR_i686-pc-windows-msvc=$(CFG_MSVC_LIB_i386)
77
CFG_LIB_NAME_i686-pc-windows-msvc=$(1).dll
88
CFG_STATIC_LIB_NAME_i686-pc-windows-msvc=$(1).lib
99
CFG_LIB_GLOB_i686-pc-windows-msvc=$(1)-*.{dll,lib}
1010
CFG_LIB_DSYM_GLOB_i686-pc-windows-msvc=$(1)-*.dylib.dSYM
1111
CFG_JEMALLOC_CFLAGS_i686-pc-windows-msvc :=
12-
CFG_GCCISH_CFLAGS_i686-pc-windows-msvc := -MD
13-
CFG_GCCISH_CXXFLAGS_i686-pc-windows-msvc := -MD
12+
CFG_GCCISH_CFLAGS_i686-pc-windows-msvc := -MD -nologo
13+
CFG_GCCISH_CXXFLAGS_i686-pc-windows-msvc := -MD -nologo
1414
CFG_GCCISH_LINK_FLAGS_i686-pc-windows-msvc :=
1515
CFG_GCCISH_DEF_FLAG_i686-pc-windows-msvc :=
1616
CFG_LLC_FLAGS_i686-pc-windows-msvc :=

branches/auto/mk/cfg/x86_64-pc-windows-msvc.mk

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
# x86_64-pc-windows-msvc configuration
2-
CC_x86_64-pc-windows-msvc="$(CFG_MSVC_CL_x86_64)" -nologo
3-
LINK_x86_64-pc-windows-msvc="$(CFG_MSVC_LINK_x86_64)" -nologo
4-
CXX_x86_64-pc-windows-msvc="$(CFG_MSVC_CL_x86_64)" -nologo
5-
CPP_x86_64-pc-windows-msvc="$(CFG_MSVC_CL_x86_64)" -nologo
6-
AR_x86_64-pc-windows-msvc="$(CFG_MSVC_LIB_x86_64)" -nologo
2+
CC_x86_64-pc-windows-msvc=$(CFG_MSVC_CL_x86_64)
3+
LINK_x86_64-pc-windows-msvc=$(CFG_MSVC_LINK_x86_64)
4+
CXX_x86_64-pc-windows-msvc=$(CFG_MSVC_CL_x86_64)
5+
CPP_x86_64-pc-windows-msvc=$(CFG_MSVC_CL_x86_64)
6+
AR_x86_64-pc-windows-msvc=$(CFG_MSVC_LIB_x86_64)
77
CFG_LIB_NAME_x86_64-pc-windows-msvc=$(1).dll
88
CFG_STATIC_LIB_NAME_x86_64-pc-windows-msvc=$(1).lib
99
CFG_LIB_GLOB_x86_64-pc-windows-msvc=$(1)-*.{dll,lib}
1010
CFG_LIB_DSYM_GLOB_x86_64-pc-windows-msvc=$(1)-*.dylib.dSYM
1111
CFG_JEMALLOC_CFLAGS_x86_64-pc-windows-msvc :=
12-
CFG_GCCISH_CFLAGS_x86_64-pc-windows-msvc := -MD
13-
CFG_GCCISH_CXXFLAGS_x86_64-pc-windows-msvc := -MD
12+
CFG_GCCISH_CFLAGS_x86_64-pc-windows-msvc := -MD -nologo
13+
CFG_GCCISH_CXXFLAGS_x86_64-pc-windows-msvc := -MD -nologo
1414
CFG_GCCISH_LINK_FLAGS_x86_64-pc-windows-msvc :=
1515
CFG_GCCISH_DEF_FLAG_x86_64-pc-windows-msvc :=
1616
CFG_LLC_FLAGS_x86_64-pc-windows-msvc :=

branches/auto/mk/crates.mk

Lines changed: 30 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,12 @@ TARGET_CRATES := libc std term \
5353
getopts collections test rand \
5454
core alloc \
5555
rustc_unicode rustc_bitflags \
56-
alloc_system alloc_jemalloc rustc_const_eval
56+
alloc_system alloc_jemalloc
5757
RUSTC_CRATES := rustc rustc_typeck rustc_mir rustc_borrowck rustc_resolve rustc_driver \
5858
rustc_trans rustc_back rustc_llvm rustc_privacy rustc_lint \
59-
rustc_data_structures rustc_front rustc_platform_intrinsics \
60-
rustc_plugin rustc_metadata rustc_passes rustc_save_analysis
59+
rustc_data_structures rustc_platform_intrinsics \
60+
rustc_plugin rustc_metadata rustc_passes rustc_save_analysis \
61+
rustc_const_eval rustc_const_math rustc_incremental
6162
HOST_CRATES := syntax syntax_ext $(RUSTC_CRATES) rustdoc fmt_macros \
6263
flate arena graphviz rbml log serialize
6364
TOOLS := compiletest rustdoc rustc rustbook error_index_generator
@@ -91,44 +92,48 @@ DEPS_test := std getopts term native:rust_test_helpers
9192
DEPS_syntax := std term serialize log arena libc rustc_bitflags rustc_unicode
9293
DEPS_syntax_ext := syntax fmt_macros
9394

94-
DEPS_rustc_const_eval := std syntax
95+
DEPS_rustc_const_math := std syntax log serialize
96+
DEPS_rustc_const_eval := rustc_const_math rustc syntax log serialize \
97+
rustc_back graphviz
9598

96-
DEPS_rustc := syntax fmt_macros flate arena serialize getopts rbml rustc_front\
99+
DEPS_rustc := syntax fmt_macros flate arena serialize getopts rbml \
97100
log graphviz rustc_llvm rustc_back rustc_data_structures\
98-
rustc_const_eval
99-
DEPS_rustc_back := std syntax rustc_llvm rustc_front flate log libc
100-
DEPS_rustc_borrowck := rustc rustc_front rustc_mir log graphviz syntax
101+
rustc_const_math
102+
DEPS_rustc_back := std syntax flate log libc
103+
DEPS_rustc_borrowck := rustc rustc_mir log graphviz syntax
101104
DEPS_rustc_data_structures := std log serialize
102105
DEPS_rustc_driver := arena flate getopts graphviz libc rustc rustc_back rustc_borrowck \
103106
rustc_typeck rustc_mir rustc_resolve log syntax serialize rustc_llvm \
104-
rustc_trans rustc_privacy rustc_lint rustc_front rustc_plugin \
105-
rustc_metadata syntax_ext rustc_passes rustc_save_analysis
106-
DEPS_rustc_front := std syntax log serialize
107-
DEPS_rustc_lint := rustc log syntax
107+
rustc_trans rustc_privacy rustc_lint rustc_plugin \
108+
rustc_metadata syntax_ext rustc_passes rustc_save_analysis rustc_const_eval \
109+
rustc_incremental
110+
DEPS_rustc_lint := rustc log syntax rustc_const_eval
108111
DEPS_rustc_llvm := native:rustllvm libc std rustc_bitflags
109-
DEPS_rustc_metadata := rustc rustc_front syntax rbml rustc_const_eval
110-
DEPS_rustc_passes := syntax rustc core rustc_front
111-
DEPS_rustc_mir := rustc rustc_front syntax rustc_const_eval
112-
DEPS_rustc_resolve := arena rustc rustc_front log syntax
113-
DEPS_rustc_platform_intrinsics := rustc rustc_llvm
112+
DEPS_rustc_metadata := rustc syntax rbml rustc_const_math
113+
DEPS_rustc_passes := syntax rustc core rustc_const_eval
114+
DEPS_rustc_mir := rustc syntax rustc_const_math rustc_const_eval
115+
DEPS_rustc_resolve := arena rustc log syntax
116+
DEPS_rustc_platform_intrinsics := std
114117
DEPS_rustc_plugin := rustc rustc_metadata syntax rustc_mir
115-
DEPS_rustc_privacy := rustc rustc_front log syntax
118+
DEPS_rustc_privacy := rustc log syntax
116119
DEPS_rustc_trans := arena flate getopts graphviz libc rustc rustc_back rustc_mir \
117-
log syntax serialize rustc_llvm rustc_front rustc_platform_intrinsics \
118-
rustc_const_eval
119-
DEPS_rustc_save_analysis := rustc log syntax rustc_front
120-
DEPS_rustc_typeck := rustc syntax rustc_front rustc_platform_intrinsics rustc_const_eval
120+
log syntax serialize rustc_llvm rustc_platform_intrinsics \
121+
rustc_const_math rustc_const_eval rustc_incremental
122+
DEPS_rustc_incremental := rbml rustc serialize rustc_data_structures
123+
DEPS_rustc_save_analysis := rustc log syntax serialize
124+
DEPS_rustc_typeck := rustc syntax rustc_platform_intrinsics rustc_const_math \
125+
rustc_const_eval
121126

122127
DEPS_rustdoc := rustc rustc_driver native:hoedown serialize getopts \
123-
test rustc_lint rustc_front
128+
test rustc_lint rustc_const_eval
124129

125130

126-
TOOL_DEPS_compiletest := test getopts log
131+
TOOL_DEPS_compiletest := test getopts log serialize
127132
TOOL_DEPS_rustdoc := rustdoc
128133
TOOL_DEPS_rustc := rustc_driver
129134
TOOL_DEPS_rustbook := std rustdoc
130135
TOOL_DEPS_error_index_generator := rustdoc syntax serialize
131-
TOOL_SOURCE_compiletest := $(S)src/compiletest/compiletest.rs
136+
TOOL_SOURCE_compiletest := $(S)src/tools/compiletest/src/main.rs
132137
TOOL_SOURCE_rustdoc := $(S)src/driver/driver.rs
133138
TOOL_SOURCE_rustc := $(S)src/driver/driver.rs
134139
TOOL_SOURCE_rustbook := $(S)src/tools/rustbook/main.rs

branches/auto/mk/ctags.mk

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,21 @@
1515

1616
.PHONY: TAGS.emacs TAGS.vi
1717

18-
CTAGS_LOCATIONS=$(wildcard ${CFG_SRC_DIR}src/lib*)
18+
CTAGS_RUSTC_LOCATIONS=$(patsubst ${CFG_SRC_DIR}src/lib%test,, \
19+
$(wildcard ${CFG_SRC_DIR}src/lib*)) ${CFG_SRC_DIR}src/libtest
1920
CTAGS_LOCATIONS=$(patsubst ${CFG_SRC_DIR}src/librust%,, \
2021
$(patsubst ${CFG_SRC_DIR}src/lib%test,, \
2122
$(wildcard ${CFG_SRC_DIR}src/lib*))) ${CFG_SRC_DIR}src/libtest
22-
CTAGS_OPTS=--options="${CFG_SRC_DIR}src/etc/ctags.rust" --languages=Rust --recurse ${CTAGS_LOCATIONS}
23+
CTAGS_OPTS=--options="${CFG_SRC_DIR}src/etc/ctags.rust" --languages=Rust --recurse
24+
25+
TAGS.rustc.emacs:
26+
ctags -e -f $@ ${CTAGS_OPTS} ${CTAGS_RUSTC_LOCATIONS}
2327

2428
TAGS.emacs:
25-
ctags -e -f $@ ${CTAGS_OPTS}
29+
ctags -e -f $@ ${CTAGS_OPTS} ${CTAGS_LOCATIONS}
30+
31+
TAGS.rustc.vi:
32+
ctags -f $@ ${CTAGS_OPTS} ${CTAGS_RUSTC_LOCATIONS}
2633

2734
TAGS.vi:
28-
ctags -f $@ ${CTAGS_OPTS}
35+
ctags -f $@ ${CTAGS_OPTS} ${CTAGS_LOCATIONS}

0 commit comments

Comments
 (0)