Skip to content

Commit 158fcbb

Browse files
committed
llconfig is llvm-config
1 parent 155c8f9 commit 158fcbb

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/etc/mklldeps.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
components = sys.argv[2].split() # splits on whitespace
1818
enable_static = sys.argv[3]
19-
llconfig = sys.argv[4]
19+
llvm_config = sys.argv[4]
2020

2121
f.write("""// Copyright 2013 The Rust Project Developers. See the COPYRIGHT
2222
// file at the top-level directory of this distribution and at
@@ -38,15 +38,15 @@ def run(args):
3838
out, err = proc.communicate()
3939

4040
if err:
41-
print("failed to run llconfig: args = `{}`".format(args))
41+
print("failed to run llvm_config: args = `{}`".format(args))
4242
print(err)
4343
sys.exit(1)
4444
return out
4545

4646
f.write("\n")
4747

4848
# LLVM libs
49-
args = [llconfig, '--libs', '--system-libs']
49+
args = [llvm_config, '--libs', '--system-libs']
5050

5151
args.extend(components)
5252
out = run(args)
@@ -68,13 +68,13 @@ def run(args):
6868
f.write(")]\n")
6969

7070
# LLVM ldflags
71-
out = run([llconfig, '--ldflags'])
71+
out = run([llvm_config, '--ldflags'])
7272
for lib in out.strip().split(' '):
7373
if lib[:2] == "-l":
7474
f.write("#[link(name = \"" + lib[2:] + "\")]\n")
7575

7676
# C++ runtime library
77-
out = run([llconfig, '--cxxflags'])
77+
out = run([llvm_config, '--cxxflags'])
7878
if enable_static == '1':
7979
assert('stdlib=libc++' not in out)
8080
f.write("#[link(name = \"stdc++\", kind = \"static\")]\n")

0 commit comments

Comments
 (0)