File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed
BinaryBuilderToolchains.jl/src Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -46,17 +46,24 @@ include("InteractiveUtils.jl")
46
46
47
47
@setup_workload begin
48
48
targets = [
49
+ BBHostPlatform (),
49
50
Platform (" x86_64" , " windows" ),
50
51
Platform (" armv7l" , " linux" ; libc= :musl ),
51
52
Platform (" aarch64" , " macos" ),
52
53
]
53
54
platforms = [CrossPlatform (BBHostPlatform () => target) for target in targets]
54
55
@compile_workload begin
55
56
for platform in platforms
56
- with_toolchains ([
57
- CMakeToolchain (platform),
58
- CToolchain (platform),
59
- HostToolsToolchain (platform)]) do prefix, env
57
+ # try/catch when running on platforms other than the typical BB2 host platforms
58
+ # and where we have incomplete toolchain implementations
59
+ try
60
+ with_toolchains ((p, e) -> nothing , [
61
+ CMakeToolchain (platform),
62
+ CToolchain (platform),
63
+ HostToolsToolchain (platform)
64
+ ])
65
+ catch
66
+ @warn (" Failed to precompile support for platform" , platform)
60
67
end
61
68
end
62
69
end
You can’t perform that action at this time.
0 commit comments