@@ -264,7 +264,7 @@ def run_lit_tests(swift_build_exec, build_dir, release, swiftc_exec,
264
264
lit_call .extend ([PACKAGE_DIR + '/lit_tests' ])
265
265
266
266
if swiftc_exec :
267
- lit_call .extend (['--param' , 'SWIFTC=' + swiftc_exec ])
267
+ lit_call .extend (['--param' , 'SWIFTC=' + realpath ( swiftc_exec ) ])
268
268
if filecheck_exec :
269
269
lit_call .extend (['--param' , 'FILECHECK=' + filecheck_exec ])
270
270
if lit_test_helper_exec :
@@ -280,7 +280,6 @@ def run_lit_tests(swift_build_exec, build_dir, release, swiftc_exec,
280
280
# Don't show all commands if verbose is not enabled
281
281
if not verbose :
282
282
lit_call .extend (['--succinct' ])
283
-
284
283
return call (lit_call , verbose = verbose ) == 0
285
284
286
285
@@ -299,7 +298,7 @@ def run_xctests(swift_test_exec, build_dir, release, swiftc_exec, verbose):
299
298
if swiftc_exec :
300
299
# Add the swiftc exec to PATH so that SwiftSyntax finds it
301
300
subenv ['PATH' ] = realpath (swiftc_exec + '/..' ) + ':' + subenv ['PATH' ]
302
-
301
+ subenv [ 'SWIFT_EXEC' ] = swiftc_exec
303
302
return call (swiftpm_call , env = subenv , verbose = verbose ) == 0
304
303
305
304
def delete_rpath (rpath , binary ):
@@ -478,7 +477,7 @@ def main():
478
477
release = args .release ,
479
478
swift_build_exec = args .swift_build_exec ,
480
479
filecheck_exec = realpath (args .filecheck_exec ),
481
- swiftc_exec = realpath ( args .swiftc_exec ) ,
480
+ swiftc_exec = args .swiftc_exec ,
482
481
swift_syntax_test_exec =
483
482
realpath (args .swift_syntax_test_exec ),
484
483
verbose = args .verbose )
0 commit comments