Skip to content

Commit 2cc9f9d

Browse files
committed
Fix macOS tests
Also aid in debugging when JLLs fail to deploy
1 parent 7cc6c67 commit 2cc9f9d

File tree

3 files changed

+16
-2
lines changed

3 files changed

+16
-2
lines changed

BinaryBuilderSources.jl/src/JLLSource.jl

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,12 @@ function deploy(jlls::Vector{JLLSource}, prefix::String)
206206
install_path = joinpath(prefix, target)
207207
mkpath(install_path)
208208
paths = unique(vcat((jll.artifact_paths for jll in target_jlls)...))
209-
deploy_artifact_paths(install_path, unique(vcat((jll.artifact_paths for jll in target_jlls)...)))
209+
try
210+
deploy_artifact_paths(install_path, paths)
211+
catch
212+
@error("Failed to deploy", install_path, paths)
213+
rethrow()
214+
end
210215
end
211216
end
212217

BinaryBuilderToolchains.jl/src/toolchains/CToolchain.jl

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -582,7 +582,12 @@ function jll_source_selection(vendor::Symbol, platform::CrossPlatform,
582582
append!(deps, libstdcxx_libs)
583583
end
584584
if cxx_runtime == :libcxx
585-
append!(deps, libcxx_libs)
585+
# We don't add these on macOS because the SDK actually comes with these libraries available.
586+
# We still build them for completeness, and in the event that we actually want to use newer
587+
# libraries, although I'm not sure why we would want that.
588+
if os(platform.target) != "macos"
589+
append!(deps, libcxx_libs)
590+
end
586591
end
587592
else
588593
throw(ArgumentError("Invalid vendor '$(vendor)'!"))

BinaryBuilderToolchains.jl/test/CToolchainTests.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,10 @@ ENV["TESTSUITE_OUTPUT_DIR"] = mktempdir(;cleanup=false)
157157
@testset "make compile-all" begin
158158
cd(joinpath(@__DIR__, "testsuite", "CToolchain")) do
159159
EXCLUDED_DIRS = String[]
160+
# macOS doesn't do debug sections, so there's no compressing them.
161+
if Sys.isapple(target)
162+
push!(EXCLUDED_DIRS, "07_compressed_debug_sections")
163+
end
160164
# the bootstrap GCC binutils doesn't have our deterministic strip patch
161165
if Sys.iswindows(target) && vendor == :gcc_bootstrap
162166
push!(EXCLUDED_DIRS, "08_strip_resigning")

0 commit comments

Comments
 (0)