Skip to content

Commit 32adabf

Browse files
committed
---
yaml --- r: 147341 b: refs/heads/try2 c: 3c2c13b h: refs/heads/master i: 147339: 759b1ee v: v3
1 parent 626ac1f commit 32adabf

Some content is hidden

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

51 files changed

+600
-770
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: b906a8b256e8e7a289bb7b0e4382f30c4bd0f431
8+
refs/heads/try2: 3c2c13bae4783c808f6640286d41cba6d9394dd9
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try2/configure

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -910,9 +910,11 @@ do
910910
# Try to have LLVM pull in as few dependencies as possible (#9397)
911911
LLVM_OPTS="$LLVM_OPTS --disable-zlib --disable-libffi"
912912

913-
# pthreads works badly on mingw-w64 systems: #8996
913+
# Use win32 native thread/lock apis instead of pthread wrapper.
914+
# (llvm's configure tries to find pthread first, so we have to disable it explicitly.)
915+
# Also note that pthreads works badly on mingw-w64 systems: #8996
914916
case "$CFG_BUILD" in
915-
(*w64-mingw32)
917+
(*-mingw32)
916918
LLVM_OPTS="$LLVM_OPTS --disable-pthreads"
917919
;;
918920
esac

branches/try2/mk/llvm.mk

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,7 @@ $(S)src/librustc/lib/llvmdeps.rs: \
5151
$(LLVM_CONFIGS) \
5252
$(S)src/etc/mklldeps.py
5353
$(Q)$(CFG_PYTHON) $(S)src/etc/mklldeps.py \
54-
"$(LLVM_COMPONENTS)" $(LLVM_CONFIGS) \
55-
> $@
54+
"$@" "$(LLVM_COMPONENTS)" $(LLVM_CONFIGS)
5655

5756
$(foreach host,$(CFG_HOST), \
5857
$(eval $(call DEF_LLVM_RULES,$(host))))

branches/try2/mk/tests.mk

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -920,14 +920,15 @@ $$(call TEST_OK_FILE,$(1),$(2),$(3),rmake): \
920920

921921
$(3)/test/run-make/%-$(1)-T-$(2)-H-$(3).ok: \
922922
$(S)src/test/run-make/%/Makefile \
923-
$$(HSREQ$(1)_H_$(3))
923+
$$(CSREQ$(1)_T_$(2)_H_$(3))
924924
@rm -rf $(3)/test/run-make/$$*
925925
@mkdir -p $(3)/test/run-make/$$*
926926
@echo maketest: $$*
927927
$$(Q)$$(CFG_PYTHON) $(S)src/etc/maketest.py $$(dir $$<) \
928928
$$(HBIN$(1)_H_$(3))/rustc$$(X_$(3)) \
929929
$(3)/test/run-make/$$* \
930-
"$$(CC_$(3)) $$(CFG_GCCISH_CFLAGS_$(3))"
930+
"$$(CC_$(3)) $$(CFG_GCCISH_CFLAGS_$(3))" \
931+
$$(HBIN$(1)_H_$(3))/rustdoc$$(X_$(3))
931932
@touch $$@
932933

933934
endef

branches/try2/src/etc/maketest.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
os.putenv('RUSTC', os.path.abspath(sys.argv[2]))
88
os.putenv('TMPDIR', os.path.abspath(sys.argv[3]))
99
os.putenv('CC', sys.argv[4])
10+
os.putenv('RUSTDOC', os.path.abspath(sys.argv[5]))
1011

1112
proc = subprocess.Popen(['make', '-C', sys.argv[1]],
1213
stdout = subprocess.PIPE,

branches/try2/src/etc/mklldeps.py

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@
44
import sys
55
import subprocess
66

7-
components = sys.argv[1].split(' ')
7+
f = open(sys.argv[1], 'wb')
88

9-
print """// Copyright 2013 The Rust Project Developers. See the COPYRIGHT
9+
components = sys.argv[2].split(' ')
10+
11+
f.write("""// Copyright 2013 The Rust Project Developers. See the COPYRIGHT
1012
// file at the top-level directory of this distribution and at
1113
// http://rust-lang.org/COPYRIGHT.
1214
//
@@ -18,10 +20,10 @@
1820
1921
// WARNING: THIS IS A GENERATED FILE, DO NOT MODIFY
2022
// take a look at src/etc/mklldeps.py if you're interested
21-
"""
23+
""")
2224

23-
for llconfig in sys.argv[2:]:
24-
print
25+
for llconfig in sys.argv[3:]:
26+
f.write("\n")
2527

2628
proc = subprocess.Popen([llconfig, '--host-target'], stdout = subprocess.PIPE)
2729
out, err = proc.communicate()
@@ -42,7 +44,7 @@
4244
"target_os = \"" + os + "\"",
4345
]
4446

45-
print "#[cfg(" + ', '.join(cfg) + ")]"
47+
f.write("#[cfg(" + ', '.join(cfg) + ")]\n")
4648

4749
args = [llconfig, '--libs']
4850
args.extend(components)
@@ -51,8 +53,7 @@
5153

5254
for lib in out.strip().split(' '):
5355
lib = lib[2:] # chop of the leading '-l'
54-
print "#[link(name = \"" + lib + "\", kind = \"static\")]"
56+
f.write("#[link(name = \"" + lib + "\", kind = \"static\")]\n")
5557
if os == 'win32':
56-
print "#[link(name = \"pthread\")]"
57-
print "#[link(name = \"imagehlp\")]"
58-
print "extern {}"
58+
f.write("#[link(name = \"imagehlp\")]\n")
59+
f.write("extern {}\n")

branches/try2/src/etc/snapshot.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,7 @@ def scrub(b):
3232
}
3333

3434
winnt_runtime_deps = ["libgcc_s_dw2-1.dll",
35-
"libstdc++-6.dll",
36-
"libpthread-2.dll"]
35+
"libstdc++-6.dll"]
3736

3837
def parse_line(n, line):
3938
global snapshotfile

0 commit comments

Comments
 (0)