@@ -33,7 +33,7 @@ class ResilienceTest(object):
33
33
34
34
def __init__ (self , target_build_swift , target_run , target_codesign ,
35
35
target_nm , tmp_dir , test_dir , test_src , lib_prefix ,
36
- lib_suffix , additional_compile_flags_library ,
36
+ lib_suffix , additional_compile_flags ,
37
37
no_backward_deployment , no_symbol_diff ):
38
38
self .target_build_swift = shlex .split (target_build_swift )
39
39
self .target_run = shlex .split (target_run )
@@ -44,8 +44,7 @@ class ResilienceTest(object):
44
44
self .test_src = test_src
45
45
self .lib_prefix = lib_prefix
46
46
self .lib_suffix = lib_suffix
47
- self .additional_compile_flags_library = \
48
- shlex .split (additional_compile_flags_library )
47
+ self .additional_compile_flags = shlex .split (additional_compile_flags )
49
48
50
49
self .before_dir = os .path .join (self .tmp_dir , 'before' )
51
50
self .after_dir = os .path .join (self .tmp_dir , 'after' )
@@ -95,7 +94,8 @@ class ResilienceTest(object):
95
94
os .path .join ('@rpath' , lib_file )]
96
95
97
96
command = self .target_build_swift + \
98
- self .additional_compile_flags_library + compiler_flags
97
+ self .additional_compile_flags + \
98
+ compiler_flags
99
99
verbose_print_command (command )
100
100
returncode = subprocess .call (command )
101
101
assert returncode == 0 , str (command )
@@ -143,7 +143,9 @@ class ResilienceTest(object):
143
143
'-Xfrontend' , '-enable-class-resilience' ,
144
144
'-I' , self .config_dir_map [config ],
145
145
'-o' , output_obj ]
146
- command = self .target_build_swift + compiler_flags
146
+ command = self .target_build_swift + \
147
+ self .additional_compile_flags + \
148
+ compiler_flags
147
149
verbose_print_command (command )
148
150
returncode = subprocess .call (command )
149
151
assert returncode == 0 , str (command )
@@ -218,7 +220,7 @@ def main():
218
220
parser .add_argument ('--s' , required = True )
219
221
parser .add_argument ('--lib-prefix' , required = True )
220
222
parser .add_argument ('--lib-suffix' , required = True )
221
- parser .add_argument ('--additional-compile-flags-library ' , default = '' )
223
+ parser .add_argument ('--additional-compile-flags' , default = '' )
222
224
parser .add_argument ('--no-backward-deployment' , default = False ,
223
225
action = 'store_true' )
224
226
parser .add_argument ('--no-symbol-diff' , default = False ,
@@ -230,7 +232,7 @@ def main():
230
232
args .target_codesign , args .target_nm ,
231
233
args .t , args .S , args .s , args .lib_prefix ,
232
234
args .lib_suffix ,
233
- args .additional_compile_flags_library ,
235
+ args .additional_compile_flags ,
234
236
args .no_backward_deployment ,
235
237
args .no_symbol_diff )
236
238
0 commit comments