@@ -406,15 +406,15 @@ function step3_interactive(state::WizardState, prefix::Prefix,
406406 platform:: AbstractPlatform ,
407407 ur:: Runner , build_path:: AbstractString , artifact_paths:: Vector{String} )
408408
409+ concrete_platform = get_concrete_platform (platform, state)
409410 if interactive_build (state, prefix, ur, build_path, platform)
410411 # Unsymlink all the deps from the dest_prefix before moving to the next step
411- cleanup_dependencies (prefix, artifact_paths)
412+ cleanup_dependencies (prefix, artifact_paths, concrete_platform )
412413 state. step = :step3_retry
413414 else
414- concrete_platform = get_concrete_platform (platform, state)
415415 step3_audit (state, platform, destdir (prefix, concrete_platform))
416416 # Unsymlink all the deps from the dest_prefix before moving to the next step
417- cleanup_dependencies (prefix, artifact_paths)
417+ cleanup_dependencies (prefix, artifact_paths, concrete_platform )
418418 return step4 (state, ur, platform, build_path, prefix)
419419 end
420420end
@@ -451,7 +451,7 @@ function step3_retry(state::WizardState)
451451 end
452452 step3_audit (state, platform, destdir (prefix, concrete_platform))
453453 # Unsymlink all the deps from the dest_prefix before moving to the next step
454- cleanup_dependencies (prefix, artifact_paths)
454+ cleanup_dependencies (prefix, artifact_paths, concrete_platform )
455455
456456 return step4 (state, ur, platform, build_path, prefix)
457457end
@@ -566,7 +566,7 @@ function step5_internal(state::WizardState, platform::AbstractPlatform)
566566 concrete_platform = get_concrete_platform (platform, state)
567567 prefix = setup_workspace (build_path, vcat (state. source_files, state. patches), concrete_platform; verbose= true )
568568 # Clean up artifacts in case there are some
569- cleanup_dependencies (prefix, get (prefix_artifacts, prefix, String[]))
569+ cleanup_dependencies (prefix, get (prefix_artifacts, prefix, String[]), concrete_platform )
570570 artifact_paths = setup_dependencies (prefix, getpkg .(state. dependencies), concrete_platform; verbose= true )
571571 # Record newly added artifacts for this prefix
572572 prefix_artifacts[prefix] = artifact_paths
@@ -642,7 +642,7 @@ function step5_internal(state::WizardState, platform::AbstractPlatform)
642642 verbose= true ,
643643 )
644644 # Clean up artifacts in case there are some
645- cleanup_dependencies (prefix, get (prefix_artifacts, prefix, String[]))
645+ cleanup_dependencies (prefix, get (prefix_artifacts, prefix, String[]), concrete_platform )
646646 artifact_paths = setup_dependencies (prefix, getpkg .(state. dependencies), platform; verbose= true )
647647 # Record newly added artifacts for this prefix
648648 prefix_artifacts[prefix] = artifact_paths
@@ -698,7 +698,7 @@ function step5_internal(state::WizardState, platform::AbstractPlatform)
698698 end
699699 # Unsymlink all the deps from the prefixes before moving to the next step
700700 for (prefix, paths) in prefix_artifacts
701- cleanup_dependencies (prefix, paths)
701+ cleanup_dependencies (prefix, paths, get_concrete_platform (platform, state) )
702702 end
703703 return ok
704704end
@@ -810,7 +810,7 @@ function step5c(state::WizardState)
810810 end
811811
812812 # Unsymlink all the deps from the prefix before moving to the next platform
813- cleanup_dependencies (prefix, artifact_paths)
813+ cleanup_dependencies (prefix, artifact_paths, concrete_platform )
814814
815815 print (state. outs, " [" )
816816 if ok
0 commit comments