@@ -352,6 +352,7 @@ config.rth = make_path(config.swift_utils, 'rth') # Resilience test helper
352352config .scale_test = make_path (config .swift_utils , 'scale-test' )
353353config .PathSanitizingFileCheck = make_path (config .swift_utils , 'PathSanitizingFileCheck' )
354354config .swift_lib_dir = make_path (config .swift , '..' , '..' , 'lib' )
355+ config .swift_libexec_dir = make_path (config .swift , '..' , '..' , 'libexec' )
355356config .round_trip_syntax_test = make_path (config .swift_utils , 'round-trip-syntax-test' )
356357config .refactor_check_compiles = make_path (config .swift_utils , 'refactor-check-compiles.py' )
357358
@@ -555,6 +556,7 @@ else:
555556config .substitutions .append ( ('%llvm_obj_root' , config .llvm_obj_root ) )
556557config .substitutions .append ( ('%swift-lib-dir' , config .swift_lib_dir ) )
557558config .substitutions .append ( ('%swift-host-lib-dir' , config .swift_host_lib_dir ))
559+ config .substitutions .append ( ('%swift-libexec-dir' , config .swift_lib_dir ) )
558560config .substitutions .append ( ('%llvm_src_root' , config .llvm_src_root ) )
559561config .substitutions .append ( ('%swift_obj_root' , config .swift_obj_root ) )
560562config .substitutions .append ( ('%swift_src_root' , config .swift_src_root ) )
@@ -1954,6 +1956,10 @@ if run_vendor == 'apple':
19541956 config .available_features .add ('back_deploy_concurrency' )
19551957 concurrency_back_deploy_path = os .path .join (os .path .dirname (swift_obj_root ), os .path .basename (swift_obj_root ).replace ("swift-" , "backdeployconcurrency-" ), 'lib' , 'swift-5.5' , xcrun_sdk_name )
19561958
1959+ backtracer_path = make_path (config .swift_libexec_dir , 'swift' ,
1960+ config .target_sdk_name , 'swift-backtrace' )
1961+ config .substitutions .append (('%backtracer' , backtracer_path ))
1962+
19571963def os_stdlib_paths ():
19581964 if run_vendor == 'apple' :
19591965 if run_os == 'maccatalyst' :
0 commit comments