@@ -48,8 +48,7 @@ def main():
48
48
description = textwrap .dedent (
49
49
"""
50
50
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).
53
52
"""
54
53
)
55
54
)
@@ -76,7 +75,7 @@ def main():
76
75
default = "HEAD^" ,
77
76
help = "Revision to checkout to compare vs HEAD" ,
78
77
)
79
- args , wrapper_args = parser .parse_known_args ()
78
+ args = parser .parse_args ()
80
79
bolt_path = f"{ args .build_dir } /bin/llvm-bolt"
81
80
82
81
source_dir = None
@@ -90,7 +89,6 @@ def main():
90
89
sys .exit ("Source directory is not found" )
91
90
92
91
script_dir = os .path .dirname (os .path .abspath (__file__ ))
93
- wrapper_path = f"{ script_dir } /llvm-bolt-wrapper.py"
94
92
# build the current commit
95
93
subprocess .run (
96
94
shlex .split ("cmake --build . --target llvm-bolt" ), cwd = args .build_dir
@@ -131,15 +129,6 @@ def main():
131
129
)
132
130
# rename llvm-bolt
133
131
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 )
143
132
if args .switch_back :
144
133
if stash :
145
134
subprocess .run (shlex .split ("git stash pop" ), cwd = source_dir )
0 commit comments