Skip to content

Commit 862bbd1

Browse files
committed
---
yaml --- r: 106406 b: refs/heads/auto c: 9fc45c1 h: refs/heads/master v: v3
1 parent 12308c8 commit 862bbd1

File tree

556 files changed

+5135
-8250
lines changed

Some content is hidden

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

556 files changed

+5135
-8250
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
1313
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1414
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1515
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
16-
refs/heads/auto: 90085a127908b65183c95c1322d4c00f37d00260
16+
refs/heads/auto: 9fc45c1f8e0ff448a83ba7df82c66598ab56f650
1717
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1818
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1919
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336

branches/auto/.gitattributes

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
*.h rust
66
*.rs rust
77
src/etc/pkg/rust-logo.ico binary
8-
src/etc/pkg/rust-logo.png binary
98
src/rt/msvc/* -whitespace
109
src/rt/vg/* -whitespace
1110
src/rt/jemalloc/**/* -whitespace

branches/auto/Makefile.in

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -177,10 +177,10 @@ include config.mk
177177

178178
# Just a few macros used everywhere
179179
include $(CFG_SRC_DIR)mk/util.mk
180-
# Reconfiguring when the makefiles or submodules change
181-
include $(CFG_SRC_DIR)mk/reconfig.mk
182180
# All crates and their dependencies
183181
include $(CFG_SRC_DIR)mk/crates.mk
182+
# Reconfiguring when the makefiles or submodules change
183+
include $(CFG_SRC_DIR)mk/reconfig.mk
184184
# Various bits of setup, common macros, and top-level rules
185185
include $(CFG_SRC_DIR)mk/main.mk
186186
# C and assembly components that are not LLVM
@@ -232,20 +232,19 @@ ifneq ($(strip $(findstring prepare,$(MAKECMDGOALS)) \
232232
include $(CFG_SRC_DIR)mk/prepare.mk
233233
endif
234234

235+
# (Unix) Installation from the build directory
236+
ifneq ($(findstring install,$(MAKECMDGOALS)),)
237+
CFG_INFO := $(info cfg: including install rules)
238+
include $(CFG_SRC_DIR)mk/install.mk
239+
endif
240+
235241
# Source and binary distribution artifacts
236242
ifneq ($(strip $(findstring dist,$(MAKECMDGOALS)) \
237-
$(findstring install,$(MAKECMDGOALS)) \
238243
$(findstring clean,$(MAKECMDGOALS))),)
239244
CFG_INFO := $(info cfg: including dist rules)
240245
include $(CFG_SRC_DIR)mk/dist.mk
241246
endif
242247

243-
# (Unix) Installation from the build directory
244-
ifneq ($(findstring install,$(MAKECMDGOALS)),)
245-
CFG_INFO := $(info cfg: including install rules)
246-
include $(CFG_SRC_DIR)mk/install.mk
247-
endif
248-
249248
# Cleaning
250249
ifneq ($(findstring clean,$(MAKECMDGOALS)),)
251250
CFG_INFO := $(info cfg: including clean rules)

branches/auto/configure

Lines changed: 9 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ need_ok() {
2727
}
2828

2929
need_cmd() {
30-
if command -v $1 >/dev/null 2>&1
30+
if which $1 >/dev/null 2>&1
3131
then msg "found $1"
3232
else err "need $1"
3333
fi
@@ -83,7 +83,7 @@ probe() {
8383
local T
8484
for P
8585
do
86-
T=$(command -v $P 2>&1)
86+
T=$(which $P 2>&1)
8787
if [ $? -eq 0 ]
8888
then
8989
VER0=$($P --version 2>/dev/null | head -1 \
@@ -274,12 +274,6 @@ case $CFG_OSTYPE in
274274
MINGW32*)
275275
CFG_OSTYPE=pc-mingw32
276276
;;
277-
278-
MINGW64*)
279-
# msys2, MSYSTEM=MINGW64
280-
CFG_OSTYPE=w64-mingw32
281-
;;
282-
283277
# Thad's Cygwin identifers below
284278

285279
# Vista 32 bit
@@ -389,8 +383,6 @@ opt local-rust 0 "use an installed rustc rather than downloading a snapshot"
389383
opt pax-flags 0 "apply PaX flags to rustc binaries (required for GRSecurity/PaX-patched kernels)"
390384
opt inject-std-version 1 "inject the current compiler version of libstd into programs"
391385
opt rpath 1 "build rpaths into rustc itself"
392-
opt nightly 0 "build nightly packages"
393-
opt verify-install 1 "verify installed binaries work"
394386
valopt prefix "/usr/local" "set installation prefix"
395387
valopt local-rust-root "/usr/local" "set prefix for local rust binary"
396388
valopt llvm-root "" "set LLVM root"
@@ -409,16 +401,16 @@ valopt infodir "${CFG_PREFIX}/share/info" "install additional info"
409401
valopt mandir "${CFG_PREFIX}/share/man" "install man pages in PATH"
410402

411403
# On windows we just store the libraries in the bin directory because
412-
# there's no rpath. This is where the build system itself puts libraries;
413-
# --libdir is used to configure the installation directory.
404+
# there's no rpath
414405
# FIXME: Thise needs to parameterized over target triples. Do it in platform.mk
415406
CFG_LIBDIR_RELATIVE=lib
416-
if [ "$CFG_OSTYPE" = "pc-mingw32" ] || [ "$CFG_OSTYPE" = "w64-mingw32" ]
407+
if [ "$CFG_OSTYPE" = "pc-mingw32" ]
417408
then
418409
CFG_LIBDIR_RELATIVE=bin
419410
fi
420411

421412
valopt libdir "${CFG_PREFIX}/${CFG_LIBDIR_RELATIVE}" "install libraries"
413+
valopt rustlibdir "rustlib" "subdirectory name for rustc's libraries"
422414

423415
if [ $HELP -eq 1 ]
424416
then
@@ -539,7 +531,7 @@ then
539531
fi
540532

541533
BIN_SUF=
542-
if [ "$CFG_OSTYPE" = "pc-mingw32" ] || [ "$CFG_OSTYPE" = "w64-mingw32" ]
534+
if [ $CFG_OSTYPE = "pc-mingw32" ]
543535
then
544536
BIN_SUF=.exe
545537
fi
@@ -785,10 +777,10 @@ do
785777
make_dir $h/stage$i/test
786778

787779
# target bin dir
788-
make_dir $h/stage$i/$CFG_LIBDIR_RELATIVE/rustlib/$t/bin
780+
make_dir $h/stage$i/$CFG_LIBDIR_RELATIVE/$CFG_RUSTLIBDIR/$t/bin
789781

790782
# target lib dir
791-
make_dir $h/stage$i/$CFG_LIBDIR_RELATIVE/rustlib/$t/lib
783+
make_dir $h/stage$i/$CFG_LIBDIR_RELATIVE/$CFG_RUSTLIBDIR/$t/lib
792784
done
793785
done
794786

@@ -1047,6 +1039,7 @@ putvar CFG_HOST
10471039
putvar CFG_TARGET
10481040
putvar CFG_C_COMPILER
10491041
putvar CFG_LIBDIR
1042+
putvar CFG_RUSTLIBDIR
10501043
putvar CFG_LIBDIR_RELATIVE
10511044
putvar CFG_DISABLE_MANAGE_SUBMODULES
10521045
putvar CFG_ANDROID_CROSS_PATH

branches/auto/mk/clean.mk

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,7 @@ clean-misc:
4343
$(Q)rm -f $(RUSTLLVM_LIB_OBJS) $(RUSTLLVM_OBJS_OBJS) $(RUSTLLVM_DEF)
4444
$(Q)rm -Rf $(GENERATED)
4545
$(Q)rm -Rf tmp/*
46-
$(Q)rm -Rf rust-stage0-*.tar.bz2 $(PKG_NAME)-*.tar.gz $(PKG_NAME)-*.exe
47-
$(Q)rm -Rf dist/*
46+
$(Q)rm -Rf rust-stage0-*.tar.bz2 $(PKG_NAME)-*.tar.gz $(PKG_NAME)-*.exe dist
4847
$(Q)rm -Rf doc
4948

5049
define CLEAN_GENERIC

branches/auto/mk/crates.mk

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,8 @@ COMPILER_DOC_CRATES := rustc syntax
105105
# $(1) is the crate to generate variables for
106106
define RUST_CRATE
107107
CRATEFILE_$(1) := $$(S)src/lib$(1)/lib.rs
108-
RSINPUTS_$(1) := $$(call rwildcard,$(S)src/lib$(1)/,*.rs)
108+
RSINPUTS_$(1) := $$(wildcard $$(addprefix $(S)src/lib$(1), \
109+
*.rs */*.rs */*/*.rs */*/*/*.rs))
109110
RUST_DEPS_$(1) := $$(filter-out native:%,$$(DEPS_$(1)))
110111
NATIVE_DEPS_$(1) := $$(patsubst native:%,%,$$(filter native:%,$$(DEPS_$(1))))
111112
endef
@@ -116,7 +117,8 @@ $(foreach crate,$(CRATES),$(eval $(call RUST_CRATE,$(crate))))
116117
#
117118
# $(1) is the crate to generate variables for
118119
define RUST_TOOL
119-
TOOL_INPUTS_$(1) := $$(call rwildcard,$$(dir $$(TOOL_SOURCE_$(1))),*.rs)
120+
TOOL_INPUTS_$(1) := $$(wildcard $$(addprefix $$(dir $$(TOOL_SOURCE_$(1))), \
121+
*.rs */*.rs */*/*.rs */*/*/*.rs))
120122
endef
121123

122124
$(foreach crate,$(TOOLS),$(eval $(call RUST_TOOL,$(crate))))

0 commit comments

Comments
 (0)