@@ -136,16 +136,19 @@ def main():
136136 cmd = ['cp' , os .path .join (build_dir , install_mod_doc ), os .path .join (module_path , install_mod_doc )]
137137 subprocess .check_call (cmd )
138138
139- if args .test :
140- lit_path = os .path .join (
141- os .path .dirname (SOURCE_DIR ), 'llvm' , 'utils' , 'lit' , 'lit.py' )
142- lit_flags = '-sv --no-progress-bar'
143- tests_path = os .path .join (SOURCE_DIR , 'Tests' , 'Functional' )
144- run ('SWIFT_EXEC={swiftc} {lit_path} {lit_flags} '
145- '{tests_path}' .format (swiftc = swiftc ,
146- lit_path = lit_path ,
147- lit_flags = lit_flags ,
148- tests_path = tests_path ))
139+ if args .test :
140+ lit_path = os .path .join (
141+ os .path .dirname (SOURCE_DIR ), 'llvm' , 'utils' , 'lit' , 'lit.py' )
142+ lit_flags = '-sv --no-progress-bar'
143+ tests_path = os .path .join (SOURCE_DIR , 'Tests' , 'Functional' )
144+ run ('SWIFT_EXEC={swiftc} '
145+ 'BUILT_PRODUCTS_DIR={built_products_dir} '
146+ '{lit_path} {lit_flags} '
147+ '{tests_path}' .format (swiftc = swiftc ,
148+ built_products_dir = build_dir ,
149+ lit_path = lit_path ,
150+ lit_flags = lit_flags ,
151+ tests_path = tests_path ))
149152
150153 note ('Done.' )
151154
0 commit comments