Skip to content

Commit 7957591

Browse files
committed
---
yaml --- r: 92402 b: refs/heads/auto c: b0a9937 h: refs/heads/master v: v3
1 parent 13f8413 commit 7957591

File tree

3 files changed

+13
-12
lines changed

3 files changed

+13
-12
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: 1890290ded2b56410b4b2e0dca4c1518b294a2b2
16+
refs/heads/auto: b0a9937a6d252eaf6c936284c377227ae510cc0f
1717
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1818
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1919
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336

branches/auto/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/auto/src/etc/mklldeps.py

Lines changed: 11 additions & 9 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,7 +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 = \"imagehlp\")]"
57-
print "extern {}"
58+
f.write("#[link(name = \"imagehlp\")]\n")
59+
f.write("extern {}\n")

0 commit comments

Comments
 (0)