Skip to content

Commit b514d88

Browse files
committed
---
yaml --- r: 155627 b: refs/heads/try2 c: 3dc32a1 h: refs/heads/master i: 155625: 9b7bd04 155623: 4403591 v: v3
1 parent 9f2594e commit b514d88

File tree

107 files changed

+8144
-1574
lines changed

Some content is hidden

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

107 files changed

+8144
-1574
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: dd0c786d338ef2073848e17b99c53ffdae62eea7
8+
refs/heads/try2: 3dc32a1dedb26c2e4ede9a1c822419c0ed0dd676
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: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22
path = src/llvm
33
url = https://github.com/rust-lang/llvm.git
44
branch = master
5+
[submodule "src/libuv"]
6+
path = src/libuv
7+
url = https://github.com/rust-lang/libuv.git
8+
branch = master
9+
[submodule "src/gyp"]
10+
path = src/gyp
11+
url = https://github.com/rust-lang/gyp.git
512
[submodule "src/compiler-rt"]
613
path = src/compiler-rt
714
url = https://github.com/rust-lang/compiler-rt.git

branches/try2/COPYRIGHT

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,41 @@ their own copyright notices and license terms:
213213
as the Rust compiler or runtime libraries themselves).
214214

215215

216+
* The libuv asynchronous I/O library. Code for this package
217+
is found in the src/libuv directory, within this
218+
distribution. This package is redistributed under the
219+
following terms, as noted in its source:
220+
221+
Copyright Joyent, Inc. and other Node contributors. All
222+
rights reserved. Permission is hereby granted, free of
223+
charge, to any person obtaining a copy of this software
224+
and associated documentation files (the "Software"), to
225+
deal in the Software without restriction, including
226+
without limitation the rights to use, copy, modify,
227+
merge, publish, distribute, sublicense, and/or sell
228+
copies of the Software, and to permit persons to whom
229+
the Software is furnished to do so, subject to the
230+
following conditions:
231+
232+
The above copyright notice and this permission notice
233+
shall be included in all copies or substantial portions
234+
of the Software.
235+
236+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
237+
ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
238+
TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
239+
PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
240+
SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
241+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
242+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
243+
IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
244+
DEALINGS IN THE SOFTWARE.
245+
246+
247+
* Additional libraries included in libuv carry separate
248+
BSD-compatible licenses. See src/libuv/LICENSE for
249+
details.
250+
216251
* The src/rt/miniz.c file, carrying an implementation of
217252
RFC1950/RFC1951 DEFLATE, by Rich Geldreich
218253
<[email protected]>. All uses of this file are

branches/try2/configure

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -438,6 +438,7 @@ valopt prefix "/usr/local" "set installation prefix"
438438
valopt local-rust-root "/usr/local" "set prefix for local rust binary"
439439
valopt llvm-root "" "set LLVM root"
440440
valopt jemalloc-root "" "set directory where libjemalloc_pic.a is located"
441+
valopt libuv-root "" "set directory where libuv.a is located"
441442
valopt android-cross-path "/opt/ndk_standalone" "Android NDK standalone path"
442443
valopt mingw32-cross-path "" "MinGW32 cross compiler path"
443444

@@ -868,6 +869,10 @@ do
868869
do
869870
make_dir $t/rt/stage$s
870871
make_dir $t/rt/jemalloc
872+
make_dir $t/rt/libuv
873+
make_dir $t/rt/libuv/src/ares
874+
make_dir $t/rt/libuv/src/eio
875+
make_dir $t/rt/libuv/src/ev
871876
for i in \
872877
isaac sync test \
873878
arch/i386 arch/x86_64 arch/arm arch/mips \
@@ -947,6 +952,10 @@ then
947952
msg "git: submodule deinit src/jemalloc"
948953
"${CFG_GIT}" submodule deinit src/jemalloc
949954
fi
955+
if [ ! -z "${CFG_LIBUV_ROOT}" ]; then
956+
msg "git: submodule deinit src/libuv"
957+
"${CFG_GIT}" submodule deinit src/libuv
958+
fi
950959

951960
msg "git: submodule update"
952961
"${CFG_GIT}" submodule update
@@ -1207,6 +1216,7 @@ putvar CFG_MINGW32_CROSS_PATH
12071216
putvar CFG_MANDIR
12081217
putvar CFG_DISABLE_INJECT_STD_VERSION
12091218
putvar CFG_JEMALLOC_ROOT
1219+
putvar CFG_LIBUV_ROOT
12101220
putvar CFG_DISABLE_JEMALLOC
12111221

12121222
# Avoid spurious warnings from clang by feeding it original source on

branches/try2/mk/crates.mk

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
# automatically generated for all stage/host/target combinations.
5050
################################################################################
5151

52-
TARGET_CRATES := libc std green native flate arena glob term semver \
52+
TARGET_CRATES := libc std green rustuv native flate arena glob term semver \
5353
uuid serialize sync getopts collections num test time rand \
5454
url log regex graphviz core rbml rlibc alloc debug rustrt \
5555
unicode
@@ -69,6 +69,7 @@ DEPS_std := core libc rand alloc collections rustrt sync unicode \
6969
native:rust_builtin native:backtrace
7070
DEPS_graphviz := std
7171
DEPS_green := std native:context_switch
72+
DEPS_rustuv := std native:uv native:uv_support
7273
DEPS_native := std
7374
DEPS_syntax := std term serialize log fmt_macros debug arena libc
7475
DEPS_rustc := syntax flate arena serialize getopts rbml \
@@ -101,7 +102,7 @@ DEPS_regex := std
101102
DEPS_regex_macros = rustc syntax std regex
102103
DEPS_fmt_macros = std
103104

104-
TOOL_DEPS_compiletest := test getopts
105+
TOOL_DEPS_compiletest := test green rustuv getopts
105106
TOOL_DEPS_rustdoc := rustdoc native
106107
TOOL_DEPS_rustc := rustc native
107108
TOOL_SOURCE_compiletest := $(S)src/compiletest/compiletest.rs

branches/try2/mk/ctags.mk

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,13 @@
1616
.PHONY: TAGS.emacs TAGS.vi
1717

1818
# This is using a blacklist approach, probably more durable than a whitelist.
19-
# We exclude: external dependencies (llvm, rt/{msvc,sundown,vg}),
19+
# We exclude: external dependencies (llvm, libuv, gyp, rt/{msvc,sundown,vg}),
2020
# tests (compiletest, test) and a couple of other things (rt/arch, etc)
2121
CTAGS_LOCATIONS=$(patsubst ${CFG_SRC_DIR}src/llvm,, \
22+
$(patsubst ${CFG_SRC_DIR}src/libuv,, \
2223
$(patsubst ${CFG_SRC_DIR}src/compiletest,, \
2324
$(patsubst ${CFG_SRC_DIR}src/test,, \
25+
$(patsubst ${CFG_SRC_DIR}src/gyp,, \
2426
$(patsubst ${CFG_SRC_DIR}src/etc,, \
2527
$(patsubst ${CFG_SRC_DIR}src/rt,, \
2628
$(patsubst ${CFG_SRC_DIR}src/rt/arch,, \

branches/try2/mk/dist.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ 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/llvm $(S)src/compiler-rt \
38+
PKG_GITMODULES := $(S)src/libuv $(S)src/llvm $(S)src/gyp $(S)src/compiler-rt \
3939
$(S)src/rt/hoedown $(S)src/jemalloc
4040
PKG_FILES := \
4141
$(S)COPYRIGHT \

branches/try2/mk/platform.mk

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ CFG_GCCISH_POST_LIB_FLAGS_x86_64-unknown-linux-gnu := -Wl,-no-whole-archive
118118
CFG_DEF_SUFFIX_x86_64-unknown-linux-gnu := .linux.def
119119
CFG_LLC_FLAGS_x86_64-unknown-linux-gnu :=
120120
CFG_INSTALL_NAME_x86_64-unknown-linux-gnu =
121+
CFG_LIBUV_LINK_FLAGS_x86_64-unknown-linux-gnu =
121122
CFG_EXE_SUFFIX_x86_64-unknown-linux-gnu =
122123
CFG_WINDOWSY_x86_64-unknown-linux-gnu :=
123124
CFG_UNIXY_x86_64-unknown-linux-gnu := 1
@@ -145,6 +146,7 @@ CFG_GCCISH_POST_LIB_FLAGS_i686-unknown-linux-gnu := -Wl,-no-whole-archive
145146
CFG_DEF_SUFFIX_i686-unknown-linux-gnu := .linux.def
146147
CFG_LLC_FLAGS_i686-unknown-linux-gnu :=
147148
CFG_INSTALL_NAME_i686-unknown-linux-gnu =
149+
CFG_LIBUV_LINK_FLAGS_i686-unknown-linux-gnu =
148150
CFG_EXE_SUFFIX_i686-unknown-linux-gnu =
149151
CFG_WINDOWSY_i686-unknown-linux-gnu :=
150152
CFG_UNIXY_i686-unknown-linux-gnu := 1
@@ -178,6 +180,7 @@ CFG_GCCISH_POST_LIB_FLAGS_arm-apple-ios :=
178180
CFG_DEF_SUFFIX_arm-apple-ios := .darwin.def
179181
CFG_LLC_FLAGS_arm-apple-ios := -mattr=+vfp3,+v7,+thumb2,+neon -march=arm
180182
CFG_INSTALL_NAME_arm-apple-ios = -Wl,-install_name,@rpath/$(1)
183+
CFG_LIBUV_LINK_FLAGS_arm-apple-ios =
181184
CFG_EXE_SUFFIX_arm-apple-ios :=
182185
CFG_WINDOWSY_arm-apple-ios :=
183186
CFG_UNIXY_arm-apple-ios := 1
@@ -213,6 +216,7 @@ CFG_GCCISH_POST_LIB_FLAGS_i386-apple-ios =
213216
CFG_DEF_SUFFIX_i386-apple-ios = .darwin.def
214217
CFG_LLC_FLAGS_i386-apple-ios =
215218
CFG_INSTALL_NAME_i386-apple-ios = -Wl,-install_name,@rpath/$(1)
219+
CFG_LIBUV_LINK_FLAGS_i386-apple-ios =
216220
CFG_EXE_SUFFIX_i386-apple-ios =
217221
CFG_WINDOWSY_i386-apple-ios =
218222
CFG_UNIXY_i386-apple-ios = 1
@@ -241,6 +245,7 @@ CFG_GCCISH_POST_LIB_FLAGS_x86_64-apple-darwin :=
241245
CFG_DEF_SUFFIX_x86_64-apple-darwin := .darwin.def
242246
CFG_LLC_FLAGS_x86_64-apple-darwin :=
243247
CFG_INSTALL_NAME_x86_64-apple-darwin = -Wl,-install_name,@rpath/$(1)
248+
CFG_LIBUV_LINK_FLAGS_x86_64-apple-darwin =
244249
CFG_EXE_SUFFIX_x86_64-apple-darwin :=
245250
CFG_WINDOWSY_x86_64-apple-darwin :=
246251
CFG_UNIXY_x86_64-apple-darwin := 1
@@ -268,6 +273,7 @@ CFG_GCCISH_POST_LIB_FLAGS_i686-apple-darwin :=
268273
CFG_DEF_SUFFIX_i686-apple-darwin := .darwin.def
269274
CFG_LLC_FLAGS_i686-apple-darwin :=
270275
CFG_INSTALL_NAME_i686-apple-darwin = -Wl,-install_name,@rpath/$(1)
276+
CFG_LIBUV_LINK_FLAGS_i686-apple-darwin =
271277
CFG_EXE_SUFFIX_i686-apple-darwin :=
272278
CFG_WINDOWSY_i686-apple-darwin :=
273279
CFG_UNIXY_i686-apple-darwin := 1
@@ -295,6 +301,7 @@ CFG_GCCISH_POST_LIB_FLAGS_arm-linux-androideabi := -Wl,-no-whole-archive
295301
CFG_DEF_SUFFIX_arm-linux-androideabi := .android.def
296302
CFG_LLC_FLAGS_arm-linux-androideabi :=
297303
CFG_INSTALL_NAME_arm-linux-androideabi =
304+
CFG_LIBUV_LINK_FLAGS_arm-linux-androideabi =
298305
CFG_EXE_SUFFIX_arm-linux-androideabi :=
299306
CFG_WINDOWSY_arm-linux-androideabi :=
300307
CFG_UNIXY_arm-linux-androideabi := 1
@@ -325,6 +332,7 @@ CFG_GCCISH_POST_LIB_FLAGS_arm-unknown-linux-gnueabihf := -Wl,-no-whole-archive
325332
CFG_DEF_SUFFIX_arm-unknown-linux-gnueabihf := .linux.def
326333
CFG_LLC_FLAGS_arm-unknown-linux-gnueabihf :=
327334
CFG_INSTALL_NAME_ar,-unknown-linux-gnueabihf =
335+
CFG_LIBUV_LINK_FLAGS_arm-unknown-linux-gnueabihf =
328336
CFG_EXE_SUFFIX_arm-unknown-linux-gnueabihf :=
329337
CFG_WINDOWSY_arm-unknown-linux-gnueabihf :=
330338
CFG_UNIXY_arm-unknown-linux-gnueabihf := 1
@@ -355,6 +363,7 @@ CFG_GCCISH_POST_LIB_FLAGS_arm-unknown-linux-gnueabi := -Wl,-no-whole-archive
355363
CFG_DEF_SUFFIX_arm-unknown-linux-gnueabi := .linux.def
356364
CFG_LLC_FLAGS_arm-unknown-linux-gnueabi :=
357365
CFG_INSTALL_NAME_arm-unknown-linux-gnueabi =
366+
CFG_LIBUV_LINK_FLAGS_arm-unknown-linux-gnueabi =
358367
CFG_EXE_SUFFIX_arm-unknown-linux-gnueabi :=
359368
CFG_WINDOWSY_arm-unknown-linux-gnueabi :=
360369
CFG_UNIXY_arm-unknown-linux-gnueabi := 1
@@ -384,6 +393,7 @@ CFG_GCCISH_POST_LIB_FLAGS_mipsel-linux := -Wl,-no-whole-archive
384393
CFG_DEF_SUFFIX_mipsel-linux := .linux.def
385394
CFG_LLC_FLAGS_mipsel-linux :=
386395
CFG_INSTALL_NAME_mipsel-linux =
396+
CFG_LIBUV_LINK_FLAGS_mipsel-linux =
387397
CFG_EXE_SUFFIX_mipsel-linux :=
388398
CFG_WINDOWSY_mipsel-linux :=
389399
CFG_UNIXY_mipsel-linux := 1
@@ -413,6 +423,7 @@ CFG_GCCISH_POST_LIB_FLAGS_mips-unknown-linux-gnu := -Wl,-no-whole-archive
413423
CFG_DEF_SUFFIX_mips-unknown-linux-gnu := .linux.def
414424
CFG_LLC_FLAGS_mips-unknown-linux-gnu :=
415425
CFG_INSTALL_NAME_mips-unknown-linux-gnu =
426+
CFG_LIBUV_LINK_FLAGS_mips-unknown-linux-gnu =
416427
CFG_EXE_SUFFIX_mips-unknown-linux-gnu :=
417428
CFG_WINDOWSY_mips-unknown-linux-gnu :=
418429
CFG_UNIXY_mips-unknown-linux-gnu := 1
@@ -441,6 +452,7 @@ CFG_GCCISH_POST_LIB_FLAGS_i586-mingw32msvc :=
441452
CFG_DEF_SUFFIX_i586-mingw32msvc := .mingw32.def
442453
CFG_LLC_FLAGS_i586-mingw32msvc :=
443454
CFG_INSTALL_NAME_i586-mingw32msvc =
455+
CFG_LIBUV_LINK_FLAGS_i586-mingw32msvc := -L$(CFG_MINGW32_CROSS_PATH)/i586-mingw32msvc/lib -lws2_32 -lpsapi -liphlpapi
444456
CFG_EXE_SUFFIX_i586-mingw32msvc := .exe
445457
CFG_WINDOWSY_i586-mingw32msvc := 1
446458
CFG_UNIXY_i586-mingw32msvc :=
@@ -471,6 +483,7 @@ CFG_GCCISH_POST_LIB_FLAGS_i686-w64-mingw32 :=
471483
CFG_DEF_SUFFIX_i686-w64-mingw32 := .mingw32.def
472484
CFG_LLC_FLAGS_i686-w64-mingw32 :=
473485
CFG_INSTALL_NAME_i686-w64-mingw32 =
486+
CFG_LIBUV_LINK_FLAGS_i686-w64-mingw32 := -lws2_32 -lpsapi -liphlpapi
474487
CFG_EXE_SUFFIX_i686-w64-mingw32 := .exe
475488
CFG_WINDOWSY_i686-w64-mingw32 := 1
476489
CFG_UNIXY_i686-w64-mingw32 :=
@@ -502,6 +515,7 @@ CFG_GCCISH_POST_LIB_FLAGS_x86_64-w64-mingw32 :=
502515
CFG_DEF_SUFFIX_x86_64-w64-mingw32 := .mingw32.def
503516
CFG_LLC_FLAGS_x86_64-w64-mingw32 :=
504517
CFG_INSTALL_NAME_x86_64-w64-mingw32 =
518+
CFG_LIBUV_LINK_FLAGS_x86_64-w64-mingw32 := -lws2_32 -lpsapi -liphlpapi
505519
CFG_EXE_SUFFIX_x86_64-w64-mingw32 := .exe
506520
CFG_WINDOWSY_x86_64-w64-mingw32 := 1
507521
CFG_UNIXY_x86_64-w64-mingw32 :=
@@ -529,6 +543,7 @@ CFG_GCCISH_POST_LIB_FLAGS_x86_64-unknown-freebsd := -Wl,-no-whole-archive
529543
CFG_DEF_SUFFIX_x86_64-unknown-freebsd := .bsd.def
530544
CFG_LLC_FLAGS_x86_64-unknown-freebsd :=
531545
CFG_INSTALL_NAME_x86_64-unknown-freebsd =
546+
CFG_LIBUV_LINK_FLAGS_x86_64-unknown-freebsd := -pthread -lkvm
532547
CFG_EXE_SUFFIX_x86_64-unknown-freebsd :=
533548
CFG_WINDOWSY_x86_64-unknown-freebsd :=
534549
CFG_UNIXY_x86_64-unknown-freebsd := 1
@@ -555,6 +570,7 @@ CFG_GCCISH_POST_LIB_FLAGS_x86_64-unknown-dragonfly := -Wl,-no-whole-archive
555570
CFG_DEF_SUFFIX_x86_64-unknown-dragonfly := .bsd.def
556571
CFG_LLC_FLAGS_x86_64-unknown-dragonfly :=
557572
CFG_INSTALL_NAME_x86_64-unknown-dragonfly =
573+
CFG_LIBUV_LINK_FLAGS_x86_64-unknown-dragonfly := -pthread -lkvm
558574
CFG_EXE_SUFFIX_x86_64-unknown-dragonfly :=
559575
CFG_WINDOWSY_x86_64-unknown-dragonfly :=
560576
CFG_UNIXY_x86_64-unknown-dragonfly := 1

branches/try2/mk/reconfig.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ rwildcard=$(foreach d,$(wildcard $1*),$(call rwildcard,$d/,$2) \
1616
ifndef CFG_DISABLE_MANAGE_SUBMODULES
1717
# This is a pretty expensive operation but I don't see any way to avoid it
1818
# NB: This only looks for '+' status (wrong commit checked out), not '-' status
19-
# (nothing checked out at all). `./configure --{llvm,jemalloc}-root`
19+
# (nothing checked out at all). `./configure --{llvm,jemalloc,libuv}-root`
2020
# will explicitly deinitialize the corresponding submodules, and we don't
2121
# want to force constant rebuilds in that case.
2222
NEED_GIT_RECONFIG=$(shell cd "$(CFG_SRC_DIR)" && "$(CFG_GIT)" submodule status | grep -c '^+')

0 commit comments

Comments
 (0)