We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2afa97a commit da818e9Copy full SHA for da818e9
src/etc/mklldeps.py
@@ -7,6 +7,7 @@
7
f = open(sys.argv[1], 'wb')
8
9
components = sys.argv[2].split(' ')
10
+components = [i for i in components if i] # ignore extra whitespaces
11
12
f.write("""// Copyright 2013 The Rust Project Developers. See the COPYRIGHT
13
// file at the top-level directory of this distribution and at
@@ -51,6 +52,10 @@
51
52
proc = subprocess.Popen(args, stdout = subprocess.PIPE)
53
out, err = proc.communicate()
54
55
+ if err:
56
+ print("failed to run llconfig: args = `{}`".format(args))
57
+ sys.exit(1)
58
+
59
for lib in out.strip().split(' '):
60
lib = lib[2:] # chop of the leading '-l'
61
f.write("#[link(name = \"" + lib + "\", kind = \"static\")]\n")
0 commit comments