@@ -910,19 +910,18 @@ elif run_os in ['linux-gnu', 'linux-gnueabihf', 'freebsd', 'windows-cygnus', 'wi
910
910
config .target_runtime = "native"
911
911
config .target_swift_autolink_extract = inferSwiftBinary ("swift-autolink-extract" )
912
912
913
- libdispatch_build_dir = make_path (config .swift_obj_root , os .pardir ,
914
- 'libdispatch%s' % config .variant_suffix , 'src' )
915
- libdispatch_build_artifacts = [
916
- make_path (libdispatch_build_dir , 'libdispatch.so' ),
917
- make_path (libdispatch_build_dir , 'libswiftDispatch.so' ),
918
- make_path (libdispatch_build_dir , 'swift' , 'Dispatch.swiftmodule' )]
919
- if (all (os .path .exists (p ) for p in libdispatch_build_artifacts )):
913
+ libdispatch_artifact_dir = make_path (config .libdispatch_build_path , 'src' )
914
+ libdispatch_artifacts = [
915
+ make_path (libdispatch_artifact_dir , 'libdispatch.so' ),
916
+ make_path (libdispatch_artifact_dir , 'libswiftDispatch.so' ),
917
+ make_path (libdispatch_artifact_dir , 'swift' , 'Dispatch.swiftmodule' )]
918
+ if (all (os .path .exists (p ) for p in libdispatch_artifacts )):
920
919
config .available_features .add ('libdispatch' )
921
- config .libdispatch_build_dir = libdispatch_build_dir
920
+ config .libdispatch_artifact_dir = libdispatch_artifact_dir
922
921
libdispatch_source_dir = make_path (config .swift_src_root , os .pardir , 'swift-corelibs-libdispatch' )
923
- libdispatch_swift_module_dir = make_path (libdispatch_build_dir , 'swift' )
922
+ libdispatch_swift_module_dir = make_path (libdispatch_artifact_dir , 'swift' )
924
923
config .import_libdispatch = ('-I %s -I %s -L %s'
925
- % (libdispatch_source_dir , libdispatch_swift_module_dir , libdispatch_build_dir ))
924
+ % (libdispatch_source_dir , libdispatch_swift_module_dir , libdispatch_artifact_dir ))
926
925
927
926
config .target_build_swift = (
928
927
'%s -target %s %s %s %s %s %s'
@@ -1331,7 +1330,7 @@ if os.path.exists(static_libswiftCore_path):
1331
1330
# default Swift tests to use the just-built libraries
1332
1331
target_stdlib_path = platform_module_dir
1333
1332
if not kIsWindows :
1334
- libdispatch_path = getattr (config , 'libdispatch_build_dir ' , '' )
1333
+ libdispatch_path = getattr (config , 'libdispatch_artifact_dir ' , '' )
1335
1334
if 'use_os_stdlib' not in lit_config .params :
1336
1335
lit_config .note ('Testing with the just-built libraries at ' + target_stdlib_path )
1337
1336
config .target_run = (
0 commit comments