@@ -983,19 +983,18 @@ elif run_os in ['linux-gnu', 'linux-gnueabihf', 'freebsd', 'windows-cygnus', 'wi
983
983
config .target_runtime = "native"
984
984
config .target_swift_autolink_extract = inferSwiftBinary ("swift-autolink-extract" )
985
985
986
- libdispatch_build_dir = make_path (config .swift_obj_root , os .pardir ,
987
- 'libdispatch%s' % config .variant_suffix , 'src' )
988
- libdispatch_build_artifacts = [
989
- make_path (libdispatch_build_dir , 'libdispatch.so' ),
990
- make_path (libdispatch_build_dir , 'libswiftDispatch.so' ),
991
- make_path (libdispatch_build_dir , 'swift' , 'Dispatch.swiftmodule' )]
992
- if (all (os .path .exists (p ) for p in libdispatch_build_artifacts )):
986
+ libdispatch_artifact_dir = make_path (config .libdispatch_build_path , 'src' )
987
+ libdispatch_artifacts = [
988
+ make_path (libdispatch_artifact_dir , 'libdispatch.so' ),
989
+ make_path (libdispatch_artifact_dir , 'libswiftDispatch.so' ),
990
+ make_path (libdispatch_artifact_dir , 'swift' , 'Dispatch.swiftmodule' )]
991
+ if (all (os .path .exists (p ) for p in libdispatch_artifacts )):
993
992
config .available_features .add ('libdispatch' )
994
- config .libdispatch_build_dir = libdispatch_build_dir
993
+ config .libdispatch_artifact_dir = libdispatch_artifact_dir
995
994
libdispatch_source_dir = make_path (config .swift_src_root , os .pardir , 'swift-corelibs-libdispatch' )
996
- libdispatch_swift_module_dir = make_path (libdispatch_build_dir , 'swift' )
995
+ libdispatch_swift_module_dir = make_path (libdispatch_artifact_dir , 'swift' )
997
996
config .import_libdispatch = ('-I %s -I %s -L %s'
998
- % (libdispatch_source_dir , libdispatch_swift_module_dir , libdispatch_build_dir ))
997
+ % (libdispatch_source_dir , libdispatch_swift_module_dir , libdispatch_artifact_dir ))
999
998
1000
999
config .target_build_swift = (
1001
1000
'%s -target %s %s %s %s %s %s'
@@ -1412,7 +1411,7 @@ if os.path.exists(static_libswiftCore_path):
1412
1411
# default Swift tests to use the just-built libraries
1413
1412
target_stdlib_path = platform_module_dir
1414
1413
if not kIsWindows :
1415
- libdispatch_path = getattr (config , 'libdispatch_build_dir ' , '' )
1414
+ libdispatch_path = getattr (config , 'libdispatch_artifact_dir ' , '' )
1416
1415
if 'use_os_stdlib' not in lit_config .params :
1417
1416
lit_config .note ('Testing with the just-built libraries at ' + target_stdlib_path )
1418
1417
config .target_run = (
0 commit comments