1616
1717components = sys .argv [2 ].split () # splits on whitespace
1818enable_static = sys .argv [3 ]
19- llconfig = sys .argv [4 ]
19+ llvm_config = sys .argv [4 ]
2020
2121f .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
4646f .write ("\n " )
4747
4848# LLVM libs
49- args = [llconfig , '--libs' , '--system-libs' ]
49+ args = [llvm_config , '--libs' , '--system-libs' ]
5050
5151args .extend (components )
5252out = 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' ])
7272for 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' ])
7878if enable_static == '1' :
7979 assert ('stdlib=libc++' not in out )
8080 f .write ("#[link(name = \" stdc++\" , kind = \" static\" )]\n " )
0 commit comments