@@ -48,8 +48,7 @@ def main():
4848 description = textwrap .dedent (
4949 """
5050 This script builds two versions of BOLT (with the current and
51- previous revision) and sets up symlink for llvm-bolt-wrapper.
52- Passes the options through to llvm-bolt-wrapper.
51+ previous revision).
5352 """
5453 )
5554 )
@@ -76,7 +75,7 @@ def main():
7675 default = "HEAD^" ,
7776 help = "Revision to checkout to compare vs HEAD" ,
7877 )
79- args , wrapper_args = parser .parse_known_args ()
78+ args = parser .parse_args ()
8079 bolt_path = f"{ args .build_dir } /bin/llvm-bolt"
8180
8281 source_dir = None
@@ -90,7 +89,6 @@ def main():
9089 sys .exit ("Source directory is not found" )
9190
9291 script_dir = os .path .dirname (os .path .abspath (__file__ ))
93- wrapper_path = f"{ script_dir } /llvm-bolt-wrapper.py"
9492 # build the current commit
9593 subprocess .run (
9694 shlex .split ("cmake --build . --target llvm-bolt" ), cwd = args .build_dir
@@ -131,15 +129,6 @@ def main():
131129 )
132130 # rename llvm-bolt
133131 os .replace (bolt_path , f"{ bolt_path } .old" )
134- # set up llvm-bolt-wrapper.ini
135- ini = subprocess .check_output (
136- shlex .split (f"{ wrapper_path } { bolt_path } .old { bolt_path } .new" ) + wrapper_args ,
137- text = True ,
138- )
139- with open (f"{ args .build_dir } /bin/llvm-bolt-wrapper.ini" , "w" ) as f :
140- f .write (ini )
141- # symlink llvm-bolt-wrapper
142- os .symlink (wrapper_path , bolt_path )
143132 if args .switch_back :
144133 if stash :
145134 subprocess .run (shlex .split ("git stash pop" ), cwd = source_dir )
0 commit comments